summaryrefslogtreecommitdiffstats
path: root/src/mainwindow.h
diff options
context:
space:
mode:
authorSimon Rettberg2019-05-15 15:00:52 +0200
committerSimon Rettberg2019-05-15 15:00:52 +0200
commit40174287f39e08fbeebb46c0e2099df4f83136ed (patch)
treef68c8147a1aeda17c9491b26d3707e2646ece7b0 /src/mainwindow.h
parentUse Qt5 QObject::connect(), fix caplock message after failed login (diff)
downloadslxgreeter-40174287f39e08fbeebb46c0e2099df4f83136ed.tar.gz
slxgreeter-40174287f39e08fbeebb46c0e2099df4f83136ed.tar.xz
slxgreeter-40174287f39e08fbeebb46c0e2099df4f83136ed.zip
Improve graphics rendering
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r--src/mainwindow.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h
index b6a756c..02db75e 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -23,6 +23,8 @@ namespace Ui {
class QTextEdit;
+class Snake;
+
class MainWindow : public QWidget
{
Q_OBJECT
@@ -49,6 +51,11 @@ public:
LoginForm* loginForm() { return m_LoginForm; }
+protected:
+ virtual void paintEvent(QPaintEvent *event);
+
+ virtual void mouseDoubleClickEvent(QMouseEvent *);
+
public slots:
void showStandby();
void updateClock();
@@ -63,6 +70,7 @@ private:
QImage m_background;
QTextEdit *m_messages;
QLabel *m_Clock;
+ Snake *m_Snake;
};
#endif // MAINWINDOW_H