aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-12-08 14:22:19 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2017-12-08 14:22:19 +0100
commit4e3c479a0f279926e0bd9a359a0ee57b334e976e (patch)
tree068f1da93a4ff6dcce251f5152df16bf77be53a8 /src/mainwindow.h
parentlibconfig test (diff)
downloadsmolbote-4e3c479a0f279926e0bd9a359a0ee57b334e976e.tar.xz
Replaced tinytoml with libconfig
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r--src/mainwindow.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h
index 5994f44..4a0c87d 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -34,17 +34,20 @@
#include "navigation/navigationbutton.h"
+#include <memory>
+
namespace Ui {
class MainWindow;
}
+class Configuration;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
- MainWindow(QWidget *parent = nullptr);
- ~MainWindow();
+ MainWindow(std::shared_ptr<Configuration> config, QWidget *parent = nullptr);
+ ~MainWindow() override;
void addTabbedDock(Qt::DockWidgetArea area, QWidget *widget);
@@ -80,6 +83,7 @@ private:
LoadingBar *m_progressBar;
bool m_tabBarAdded = false;
+ std::shared_ptr<Configuration> m_config;
};
#endif // MAINWINDOW_H