summaryrefslogtreecommitdiffhomepage
path: root/gui/keyboard.h
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/keyboard.h
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/keyboard.h')
-rw-r--r--gui/keyboard.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gui/keyboard.h b/gui/keyboard.h
index f4e5f7c0..9ca50df1 100644
--- a/gui/keyboard.h
+++ b/gui/keyboard.h
@@ -1,5 +1,7 @@
#pragma once
+#include "export.hpp"
+
#ifdef _WIN32
# include "logic/win32-shortcuts.h"
# include "dinput/keybinding-worker.hpp"
@@ -10,7 +12,7 @@
#include <QDialog>
#include <QKeyEvent>
-class KeyboardListener : public QDialog
+class OTR_GUI_EXPORT keyboard_listener : public QDialog
{
Q_OBJECT
Ui_keyboard_listener ui;
@@ -18,7 +20,7 @@ class KeyboardListener : public QDialog
KeybindingWorker::Token token;
#endif
public:
- KeyboardListener(QWidget* parent = nullptr);
+ keyboard_listener(QWidget* parent = nullptr);
#ifndef _WIN32
void keyPressEvent(QKeyEvent* event) override;
#endif