diff options
author | Jan Dalheimer <jan@dalheimer.de> | 2014-07-12 23:02:52 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-07-12 23:31:06 +0200 |
commit | 4c0dc51110603cbe0e98228c703e26402094a3cc (patch) | |
tree | b056d601ba2494e046752e5c94e3049182293515 /gui/pages/ScreenshotsPage.h | |
parent | 5c4384235989b16d6931cc0cfa26dd192af68b96 (diff) | |
download | MultiMC-4c0dc51110603cbe0e98228c703e26402094a3cc.tar MultiMC-4c0dc51110603cbe0e98228c703e26402094a3cc.tar.gz MultiMC-4c0dc51110603cbe0e98228c703e26402094a3cc.tar.lz MultiMC-4c0dc51110603cbe0e98228c703e26402094a3cc.tar.xz MultiMC-4c0dc51110603cbe0e98228c703e26402094a3cc.zip |
Finish of the OtherLogs page, and (re)format page related files
Diffstat (limited to 'gui/pages/ScreenshotsPage.h')
-rw-r--r-- | gui/pages/ScreenshotsPage.h | 35 |
1 files changed, 23 insertions, 12 deletions
diff --git a/gui/pages/ScreenshotsPage.h b/gui/pages/ScreenshotsPage.h index 8b6d1e4d..19ae6cd8 100644 --- a/gui/pages/ScreenshotsPage.h +++ b/gui/pages/ScreenshotsPage.h @@ -14,11 +14,11 @@ */ #pragma once + #include <QWidget> -#include <logic/OneSixInstance.h> + +#include "logic/OneSixInstance.h" #include "BasePage.h" -#include <QIcon> -#include <QEvent> class QFileSystemModel; class QIdentityProxyModel; @@ -38,21 +38,32 @@ class ScreenshotsPage : public QWidget, public BasePage public: explicit ScreenshotsPage(BaseInstance *instance, QWidget *parent = 0); virtual ~ScreenshotsPage(); - + virtual void opened() override; - + enum { NothingDone = 0x42 }; - + virtual bool eventFilter(QObject *, QEvent *); - virtual QString displayName() const override; - virtual QIcon icon() const override; - virtual QString id() const override; - virtual QString helpPage() const override { return "Screenshots-management"; } -private -slots: + virtual QString displayName() const override + { + return tr("Screenshots"); + } + virtual QIcon icon() const override + { + return QIcon::fromTheme("screenshots"); + } + virtual QString id() const override + { + return "screenshots"; + } + virtual QString helpPage() const override + { + return "Screenshots-management"; + } +private slots: void on_uploadBtn_clicked(); void on_deleteBtn_clicked(); void on_renameBtn_clicked(); |