diff options
author | timoreo <timo.oreo34@gmail.com> | 2022-07-01 20:04:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-01 20:04:06 +0200 |
commit | 2e17e780528e8646e1e3ab9e4eb68a9ea1126c48 (patch) | |
tree | 9e8e31d274409ac118c21c66f195c0853cb92320 /launcher/ui/dialogs/NewsDialog.h | |
parent | f2fa82fd3c8e91c4da5800fbbbb5e222359dc185 (diff) | |
parent | 9ef38171e246dcc88878f438d06bf8d7f72aec51 (diff) | |
download | PrismLauncher-2e17e780528e8646e1e3ab9e4eb68a9ea1126c48.tar.gz PrismLauncher-2e17e780528e8646e1e3ab9e4eb68a9ea1126c48.tar.bz2 PrismLauncher-2e17e780528e8646e1e3ab9e4eb68a9ea1126c48.zip |
Merge pull request #845 from flowln/news_in_launcher
Diffstat (limited to 'launcher/ui/dialogs/NewsDialog.h')
-rw-r--r-- | launcher/ui/dialogs/NewsDialog.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/launcher/ui/dialogs/NewsDialog.h b/launcher/ui/dialogs/NewsDialog.h new file mode 100644 index 00000000..add6b8dd --- /dev/null +++ b/launcher/ui/dialogs/NewsDialog.h @@ -0,0 +1,30 @@ +#pragma once + +#include <QDialog> +#include <QHash> + +#include "news/NewsEntry.h" + +namespace Ui { +class NewsDialog; +} + +class NewsDialog : public QDialog { + Q_OBJECT + + public: + NewsDialog(QList<NewsEntryPtr> entries, QWidget* parent = nullptr); + ~NewsDialog(); + + public slots: + void toggleArticleList(); + + private slots: + void selectedArticleChanged(const QString& new_title); + + private: + Ui::NewsDialog* ui; + + QHash<QString, NewsEntryPtr> m_entries; + bool m_article_list_hidden = false; +}; |