summaryrefslogtreecommitdiffstats
path: root/tools/designer/designer/resource.cpp
diff options
context:
space:
mode:
authorRoman Savochenko <rom_as@oscada.org>2017-07-30 10:49:48 +0200
committerSlávek Banko <slavek.banko@axis.cz>2017-07-30 10:49:48 +0200
commit02405c8411cbdf42fa8f73ce93598eb6f5cec0fe (patch)
treee327309227bbf3769c32120bea4f9cd1f3adadfd /tools/designer/designer/resource.cpp
parent3a5672aab4a54fea0e9aa741f3a9db590ce9f815 (diff)
downloadqt3-02405c8411cbdf42fa8f73ce93598eb6f5cec0fe.tar.gz
qt3-02405c8411cbdf42fa8f73ce93598eb6f5cec0fe.zip
Add brightness keys support
The code partially taken from Qt4 This relates to bug 2775 Signed-off-by: Roman Savochenko <rom_as@oscada.org>
Diffstat (limited to 'tools/designer/designer/resource.cpp')
-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