Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
HotkeyDialog.h
Go to the documentation of this file.
1/*
2 * Deskflow -- mouse and keyboard sharing utility
3 * SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
4 * SPDX-FileCopyrightText: (C) 2008 Volker Lanz <vl@fidra.de>
5 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
6 */
7
8#pragma once
9
10#include "Hotkey.h"
11
12#include <QDialog>
13
15
16namespace Ui {
17class HotkeyDialog;
18}
19
20class HotkeyDialog : public QDialog
21{
22 Q_OBJECT
23
24public:
25 HotkeyDialog(QWidget *parent, Hotkey &hotkey);
26 ~HotkeyDialog() override;
27
28 const Hotkey &hotkey() const
29 {
30 return m_Hotkey;
31 }
32
33protected Q_SLOTS:
34 void accept() override;
35
36protected:
37 const KeySequenceWidget *sequenceWidget() const;
38
40 {
41 return m_Hotkey;
42 }
43
44private:
45 std::unique_ptr<Ui::HotkeyDialog> ui;
46 Hotkey &m_Hotkey;
47};
HotkeyDialog(QWidget *parent, Hotkey &hotkey)
Definition HotkeyDialog.cpp:11
const Hotkey & hotkey() const
Definition HotkeyDialog.h:28
void accept() override
Definition HotkeyDialog.cpp:23
Hotkey & hotkey()
Definition HotkeyDialog.h:39
~HotkeyDialog() override
const KeySequenceWidget * sequenceWidget() const
Definition HotkeyDialog.cpp:32
Definition Hotkey.h:23
Definition KeySequenceWidget.h:15
Definition AboutDialog.h:13