diff options
author | Simon Rettberg | 2019-05-25 17:48:41 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-05-25 17:48:41 +0200 |
commit | 5c92e0612ec7ae4ea329fa18792b94fcb5908cfd (patch) | |
tree | 5998ee5decde2afc0c20adefb011bc07c3bcee81 /src/mainwindow.h | |
parent | Improve rendering even more (diff) | |
download | slxgreeter-5c92e0612ec7ae4ea329fa18792b94fcb5908cfd.tar.gz slxgreeter-5c92e0612ec7ae4ea329fa18792b94fcb5908cfd.tar.xz slxgreeter-5c92e0612ec7ae4ea329fa18792b94fcb5908cfd.zip |
Add news panel to the right of the login form
By pointing the new setting news-html-file to a file
containing QTextEdit-compatible html formatted text, you can
have a news panel show up on the login screen.
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r-- | src/mainwindow.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h index 02db75e..ec153b7 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -23,7 +23,7 @@ namespace Ui { class QTextEdit; -class Snake; +class GameCore; class MainWindow : public QWidget { @@ -41,7 +41,9 @@ public: QSize createDistro(const QRect &max); - void createLogWindow(const QRect& geom); + bool createLogWindow(const QRect& geom); + + void createNewsWindow(const QRect &size); void createClock(); @@ -70,7 +72,7 @@ private: QImage m_background; QTextEdit *m_messages; QLabel *m_Clock; - Snake *m_Snake; + GameCore *m_Snake; }; #endif // MAINWINDOW_H |