summaryrefslogtreecommitdiffhomepage
path: root/gui/settings.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-11 14:36:07 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-11 14:36:07 +0100
commite1d6232217120be879bb639681f61e46e2d48580 (patch)
treed186ffc3dd72de6e4703d584a41971107ca8389b /gui/settings.hpp
parent98ef185a5c9075720acb54ec1c2e5fec6e4ab440 (diff)
cmake, gui, main: make user interface reusable
The work isn't complete. We need moving out all non-reusable parts away and only keeping user interface logic in a class.
Diffstat (limited to 'gui/settings.hpp')
-rw-r--r--gui/settings.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/gui/settings.hpp b/gui/settings.hpp
index 67c0ee54..63e109a4 100644
--- a/gui/settings.hpp
+++ b/gui/settings.hpp
@@ -1,19 +1,21 @@
#pragma once
-#include "ui_settings-dialog.h"
+#include "export.hpp"
+
+#include "gui/ui_settings-dialog.h"
#include "logic/shortcuts.h"
#include <QObject>
#include <QDialog>
#include <QWidget>
#include <functional>
-class OptionsDialog : public QDialog
+class OTR_GUI_EXPORT options_dialog : public QDialog
{
Q_OBJECT
signals:
void closing();
public:
- OptionsDialog(std::function<void(bool)> pause_keybindings);
+ options_dialog(std::function<void(bool)> pause_keybindings);
private:
main_settings main;
std::function<void(bool)> pause_keybindings;