aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop-unified/src-events/LShortcutEvents.h
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-07-08 09:59:59 -0400
committerKen Moore <ken@ixsystems.com>2017-07-08 09:59:59 -0400
commitac3fa9168954faabc3acd37dde82479340b78283 (patch)
treed47f14a0b3a2c90e867abe6927978eeb50e21a70 /src-qt5/core/lumina-desktop-unified/src-events/LShortcutEvents.h
parentA few more updates in the X11->Qt button mapping (diff)
downloadlumina-ac3fa9168954faabc3acd37dde82479340b78283.tar.gz
lumina-ac3fa9168954faabc3acd37dde82479340b78283.tar.bz2
lumina-ac3fa9168954faabc3acd37dde82479340b78283.zip
Clean up the LShortcutEvents class so it uses Qt::Key values now instead of raw keycodes.
Diffstat (limited to 'src-qt5/core/lumina-desktop-unified/src-events/LShortcutEvents.h')
-rw-r--r--src-qt5/core/lumina-desktop-unified/src-events/LShortcutEvents.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src-qt5/core/lumina-desktop-unified/src-events/LShortcutEvents.h b/src-qt5/core/lumina-desktop-unified/src-events/LShortcutEvents.h
index a8ab4b38..4560cb1f 100644
--- a/src-qt5/core/lumina-desktop-unified/src-events/LShortcutEvents.h
+++ b/src-qt5/core/lumina-desktop-unified/src-events/LShortcutEvents.h
@@ -22,7 +22,7 @@ public:
void stop();
private:
- QList<int> keylist; //keys currently held down (NOTE: QKeySequence has a max of 4 keys for combinations)
+ QList< Qt::Key > keylist; //keys currently held down
WId WIN; //current window being acted on by the keys
QTimer *clearTimer; //used to clear the internal keylist every once in a while if no events come in.
bool evaluated;
@@ -34,8 +34,8 @@ private:
void evaluateShortcutAction(QString action);
public slots:
- void KeyPress(WId window, int key);
- void KeyRelease(WId window, int key);
+ void KeyPress(WId window, Qt::Key key);
+ void KeyRelease(WId window, Qt::Key key);
void MousePress(WId window, NativeWindowSystem::MouseButton);
void MouseRelease(WId window, NativeWindowSystem::MouseButton);
void clearKeys();
@@ -66,6 +66,7 @@ signals:
//General Utility Launch
void LaunchApplication(QString exec);
+ void LaunchStandardApplication(QString app); //standard app like "terminal", "browser", "email", "settings", etc..
};
bgstack15