summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget.cpp
diff options
context:
space:
mode:
authorJason Barron <jbarron@trolltech.com>2009-09-19 17:12:10 (GMT)
committerJason Barron <jbarron@trolltech.com>2009-09-21 08:07:39 (GMT)
commit6248dff2c7f3288d675de639abfbbc6c1d618006 (patch)
tree11c8a736b8b2b3a8fd474225cab630370f369d57 /src/gui/kernel/qwidget.cpp
parent789303e0f80a299eb3cfacc1d84dbdc1d3e4abeb (diff)
downloadQt-6248dff2c7f3288d675de639abfbbc6c1d618006.zip
Qt-6248dff2c7f3288d675de639abfbbc6c1d618006.tar.gz
Qt-6248dff2c7f3288d675de639abfbbc6c1d618006.tar.bz2
Give the soft key functionality it's own macro.
Re-using QT_KEYPAD_NAVIGATION for soft keys is wrong since the two are independant concepts. This puts everything in a new macro called QT_SOFTKEYS_ENABLED. This will also insulate the embedded customers who use keypad navigation from the soft key changes. Reviewed-by: Alessandro Portale
Diffstat (limited to 'src/gui/kernel/qwidget.cpp')
-rw-r--r--src/gui/kernel/qwidget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp
index 461834c..41d0b23 100644
--- a/src/gui/kernel/qwidget.cpp
+++ b/src/gui/kernel/qwidget.cpp
@@ -7991,7 +7991,7 @@ bool QWidget::event(QEvent *event)
}
break;
case QEvent::FocusIn:
-#ifdef QT_KEYPAD_NAVIGATION
+#ifdef QT_SOFTKEYS_ENABLED
QSoftKeyManager::updateSoftKeys();
#endif
focusInEvent((QFocusEvent*)event);
@@ -8144,7 +8144,7 @@ bool QWidget::event(QEvent *event)
QApplication::sendEvent(w, event);
}
-#ifdef QT_KEYPAD_NAVIGATION
+#ifdef QT_SOFTKEYS_ENABLED
if (isWindow() && isActiveWindow())
QSoftKeyManager::updateSoftKeys();
#endif
@@ -8256,7 +8256,7 @@ bool QWidget::event(QEvent *event)
case QEvent::ActionAdded:
case QEvent::ActionRemoved:
case QEvent::ActionChanged:
-#ifdef QT_KEYPAD_NAVIGATION
+#ifdef QT_SOFTKEYS_ENABLED
QSoftKeyManager::updateSoftKeys(true);
#endif
actionEvent((QActionEvent*)event);