diff options
author | LennyMcLennington <lenny@sneed.church> | 2022-02-11 12:03:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-11 12:03:29 +0000 |
commit | 53ea2613507b1b44d631ea61ab554895c0d02836 (patch) | |
tree | 6ca8cb043b8cc7628060eafc56ebc74b83d2707a /launcher/ui/MainWindow.h | |
parent | a17e5d0a4d1dd7c9aea8030e9289f106a3d64738 (diff) | |
parent | 13d41bde7fd6cb7119395a1cc829174da5872b60 (diff) | |
download | PrismLauncher-53ea2613507b1b44d631ea61ab554895c0d02836.tar.gz PrismLauncher-53ea2613507b1b44d631ea61ab554895c0d02836.tar.bz2 PrismLauncher-53ea2613507b1b44d631ea61ab554895c0d02836.zip |
Merge pull request #151 from dada513/rss_not_begone
Re-add RSS feed with the new PolyMC website
Diffstat (limited to 'launcher/ui/MainWindow.h')
-rw-r--r-- | launcher/ui/MainWindow.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/launcher/ui/MainWindow.h b/launcher/ui/MainWindow.h index 38d925a9..f6940ab0 100644 --- a/launcher/ui/MainWindow.h +++ b/launcher/ui/MainWindow.h @@ -27,6 +27,7 @@ #include "updater/GoUpdate.h" class LaunchController; +class NewsChecker; class NotificationChecker; class QToolButton; class InstanceProxyModel; @@ -108,6 +109,10 @@ private slots: void on_actionReportBug_triggered(); + void on_actionMoreNews_triggered(); + + void newsButtonClicked(); + void on_actionLaunchInstance_triggered(); void on_actionLaunchInstanceOffline_triggered(); @@ -169,6 +174,8 @@ private slots: void repopulateAccountsMenu(); + void updateNewsLabel(); + /*! * Runs the DownloadTask and installs updates. */ @@ -198,12 +205,14 @@ private: // these are managed by Qt's memory management model! InstanceView *view = nullptr; InstanceProxyModel *proxymodel = nullptr; + QToolButton *newsLabel = nullptr; QLabel *m_statusLeft = nullptr; QLabel *m_statusCenter = nullptr; QMenu *accountMenu = nullptr; QToolButton *accountMenuButton = nullptr; KonamiCode * secretEventFilter = nullptr; + unique_qobject_ptr<NewsChecker> m_newsChecker; unique_qobject_ptr<NotificationChecker> m_notificationChecker; InstancePtr m_selectedInstance; |