From 05bb6ad8f1ad6d3abf835a9ad91a5b42f90db920 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Fri, 21 Apr 2017 21:42:29 +0200 Subject: Add AboutTab class instead of having a TextEdit widget as tab. --- plugingui/mainwindow.h | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'plugingui/mainwindow.h') diff --git a/plugingui/mainwindow.h b/plugingui/mainwindow.h index cd2eb1f..7f95794 100644 --- a/plugingui/mainwindow.h +++ b/plugingui/mainwindow.h @@ -28,9 +28,8 @@ #include -#include "frame.h" +#include "abouttab.h" #include "image.h" -#include "textedit.h" #include "tabwidget.h" #include "texturedbox.h" #include "window.h" @@ -62,15 +61,12 @@ private: // From Widget void repaintEvent(RepaintEvent* repaintEvent) override final; - std::string getAboutText(); - - TabWidget tabs{this}; - Config config; SettingsNotifier settings_notifier; + TabWidget tabs{this}; MainTab main_tab; - TextEdit about_text_field{&tabs}; + AboutTab about_tab{&tabs}; Image back{":resources/bg.png"}; Image logo{":resources/logo.png"}; @@ -87,10 +83,6 @@ private: bool closing{false}; - Resource about{":../ABOUT"}; - Resource authors{":../AUTHORS"}; - Resource gpl{":../COPYING"}; - Font font; }; -- cgit v1.2.3