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/LogPage.h | |
parent | 5c4384235989b16d6931cc0cfa26dd192af68b96 (diff) | |
download | PrismLauncher-4c0dc51110603cbe0e98228c703e26402094a3cc.tar.gz PrismLauncher-4c0dc51110603cbe0e98228c703e26402094a3cc.tar.bz2 PrismLauncher-4c0dc51110603cbe0e98228c703e26402094a3cc.zip |
Finish of the OtherLogs page, and (re)format page related files
Diffstat (limited to 'gui/pages/LogPage.h')
-rw-r--r-- | gui/pages/LogPage.h | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/gui/pages/LogPage.h b/gui/pages/LogPage.h index 72ca09ec..be5b3a20 100644 --- a/gui/pages/LogPage.h +++ b/gui/pages/LogPage.h @@ -13,13 +13,13 @@ * limitations under the License. */ - #pragma once + #include <QWidget> -#include <logic/BaseInstance.h> -#include <logic/net/NetJob.h> -#include <logic/MinecraftProcess.h> +#include "logic/BaseInstance.h" +#include "logic/net/NetJob.h" +#include "logic/MinecraftProcess.h" #include "BasePage.h" class EnabledItemFilter; @@ -36,11 +36,23 @@ class LogPage : public QWidget, public BasePage public: explicit LogPage(MinecraftProcess *proc, QWidget *parent = 0); virtual ~LogPage(); - virtual QString displayName() const override; - virtual QIcon icon() const override; - virtual QString id() const override; + virtual QString displayName() const override + { + return tr("Minecraft Log"); + } + virtual QIcon icon() const override + { + return QIcon::fromTheme("log"); + } + virtual QString id() const override + { + return "console"; + } virtual bool apply(); - virtual QString helpPage() const override { return "Minecraft-Log"; } + virtual QString helpPage() const override + { + return "Minecraft-Log"; + } virtual bool shouldDisplay() const; private: @@ -64,7 +76,7 @@ private slots: void on_btnPaste_clicked(); void on_btnCopy_clicked(); void on_btnClear_clicked(); - + private: Ui::LogPage *ui; MinecraftProcess *m_process; |