diff options
Diffstat (limited to 'qxt-mini/qxtglobalshortcut.h')
| -rw-r--r-- | qxt-mini/qxtglobalshortcut.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/qxt-mini/qxtglobalshortcut.h b/qxt-mini/qxtglobalshortcut.h index bf26180f..9f8dcf9e 100644 --- a/qxt-mini/qxtglobalshortcut.h +++ b/qxt-mini/qxtglobalshortcut.h @@ -1,4 +1,4 @@ -#ifndef QXTGLOBALSHORTCUT_H +#pragma once /**************************************************************************** ** Copyright (c) 2006 - 2011, the LibQxt project. ** See the Qxt AUTHORS file for a list of authors and copyright holders. @@ -43,9 +43,11 @@ class QXT_GUI_EXPORT QxtGlobalShortcut : public QObject Q_PROPERTY(bool enabled READ isEnabled WRITE setEnabled) Q_PROPERTY(QKeySequence shortcut READ shortcut WRITE setShortcut) + bool keystate; + public: - explicit QxtGlobalShortcut(QObject* parent = 0); - explicit QxtGlobalShortcut(const QKeySequence& shortcut, QObject* parent = 0); + explicit QxtGlobalShortcut(QObject* parent = nullptr); + explicit QxtGlobalShortcut(const QKeySequence& shortcut, QObject* parent = nullptr); ~QxtGlobalShortcut() override; QKeySequence shortcut() const; @@ -58,7 +60,5 @@ public Q_SLOTS: void setDisabled(bool disabled = true); Q_SIGNALS: - void activated(); + void activated(bool keydown = true); }; - -#endif // QXTGLOBALSHORTCUT_H |
