summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel
diff options
context:
space:
mode:
authoraxis <qt-info@nokia.com>2009-12-07 12:40:00 (GMT)
committeraxis <qt-info@nokia.com>2009-12-07 12:40:00 (GMT)
commit757fc27dcdaf67b2f79d2f3bcc8eaaeff345c0c8 (patch)
tree06c36fb43ab2e5711136e64528972800afa6c2b7 /src/gui/kernel
parentcfd98763a1d051238382b77975567da0c0562ade (diff)
parent245c9cc07ff1581dd126f213985c3557b2667aca (diff)
downloadQt-757fc27dcdaf67b2f79d2f3bcc8eaaeff345c0c8.zip
Qt-757fc27dcdaf67b2f79d2f3bcc8eaaeff345c0c8.tar.gz
Qt-757fc27dcdaf67b2f79d2f3bcc8eaaeff345c0c8.tar.bz2
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt-s60-public into 4.6-staging2
Diffstat (limited to 'src/gui/kernel')
-rw-r--r--src/gui/kernel/qsoftkeymanager.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/kernel/qsoftkeymanager.cpp b/src/gui/kernel/qsoftkeymanager.cpp
index 1acc9b3..464a250 100644
--- a/src/gui/kernel/qsoftkeymanager.cpp
+++ b/src/gui/kernel/qsoftkeymanager.cpp
@@ -246,7 +246,7 @@ void QSoftKeyManagerPrivate::updateSoftKeys_sys(const QList<QAction*> &softkeys)
break;
}
- int command = (softKeyAction->objectName().contains("_q_menuSoftKeyAction"))
+ int command = (softKeyAction->objectName().contains(QLatin1String("_q_menuSoftKeyAction")))
? EAknSoftkeyOptions
: s60CommandStart + index;
@@ -254,7 +254,10 @@ void QSoftKeyManagerPrivate::updateSoftKeys_sys(const QList<QAction*> &softkeys)
const int underlineShortCut = QApplication::style()->styleHint(QStyle::SH_UnderlineShortcut);
QString iconText = softKeyAction->iconText();
TPtrC text = qt_QString2TPtrC( underlineShortCut ? softKeyAction->text() : iconText);
- QT_TRAP_THROWING(nativeContainer->SetCommandL(position, command, text));
+ QT_TRAP_THROWING(
+ nativeContainer->SetCommandL(position, command, text);
+ nativeContainer->DimCommand(command, !softKeyAction->isEnabled());
+ );
}
}