summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRoman Savochenko <[email protected]>2017-07-30 10:49:48 +0200
committerSlávek Banko <[email protected]>2017-07-30 10:49:58 +0200
commit7b580ac8d083d50d7d572740569b1488d6f533a4 (patch)
treea572fbeba6188f6ff2b0b7c8feabb77b2561b182 /tools
parent488cf3ec8eff16640bc7c5e1391f3f2e385ee4f6 (diff)
downloadqt3-7b580ac8d083d50d7d572740569b1488d6f533a4.tar.gz
qt3-7b580ac8d083d50d7d572740569b1488d6f533a4.zip
Add brightness keys support
The code partially taken from Qt4 This relates to bug 2775 Signed-off-by: Roman Savochenko <[email protected]> (cherry picked from commit 02405c8411cbdf42fa8f73ce93598eb6f5cec0fe)
Diffstat (limited to 'tools')
-rw-r--r--tools/designer/designer/resource.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/designer/designer/resource.cpp b/tools/designer/designer/resource.cpp
index 7fed3ca..b6fc689 100644
--- a/tools/designer/designer/resource.cpp
+++ b/tools/designer/designer/resource.cpp
@@ -180,6 +180,11 @@ static struct {
{ Qt::Key_LaunchD, QT_TRANSLATE_NOOP( "QAccel", "Launch (D)" ) },
{ Qt::Key_LaunchE, QT_TRANSLATE_NOOP( "QAccel", "Launch (E)" ) },
{ Qt::Key_LaunchF, QT_TRANSLATE_NOOP( "QAccel", "Launch (F)" ) },
+ { Qt::Key_MonBrightnessUp, QT_TRANSLATE_NOOP( "QAccel", "Monitor Brightness Up" ) },
+ { Qt::Key_MonBrightnessDown, QT_TRANSLATE_NOOP( "QAccel", "Monitor Brightness Down" ) },
+ { Qt::Key_KeyboardLightOnOff, QT_TRANSLATE_NOOP( "QAccel", "Keyboard Light On Off" ) },
+ { Qt::Key_KeyboardBrightnessUp, QT_TRANSLATE_NOOP( "QAccel", "Keyboard Brightness Up" ) },
+ { Qt::Key_KeyboardBrightnessDown, QT_TRANSLATE_NOOP( "QAccel", "Keyboard Brightness Down" ) },
// --------------------------------------------------------------
// More consistent namings