summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAriya Hidayat <ariya.hidayat@nokia.com>2009-06-11 16:23:13 (GMT)
committerAriya Hidayat <ariya.hidayat@nokia.com>2009-06-11 16:28:48 (GMT)
commita28afcd379faa0c7af2bec23aef8d4023623e616 (patch)
tree65b998eec30045845352086bfda57eced4d991e0 /src
parent63b1685545bbcc4d25d0272f09b2b06c15d4dc5c (diff)
downloadQt-a28afcd379faa0c7af2bec23aef8d4023623e616.zip
Qt-a28afcd379faa0c7af2bec23aef8d4023623e616.tar.gz
Qt-a28afcd379faa0c7af2bec23aef8d4023623e616.tar.bz2
Initialize softKeyRole in the constructor.
Reviewed-by: Alessandro Portale
Diffstat (limited to 'src')
-rw-r--r--src/gui/kernel/qaction.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/kernel/qaction.cpp b/src/gui/kernel/qaction.cpp
index 8263cbc..b1db8d6 100644
--- a/src/gui/kernel/qaction.cpp
+++ b/src/gui/kernel/qaction.cpp
@@ -81,7 +81,8 @@ static QString qt_strippedText(QString s)
QActionPrivate::QActionPrivate() : group(0), enabled(1), forceDisabled(0),
visible(1), forceInvisible(0), checkable(0), checked(0), separator(0), fontSet(false),
- menuRole(QAction::TextHeuristicRole), iconVisibleInMenu(-1)
+ menuRole(QAction::TextHeuristicRole), softKeyRole(QAction::OptionsSoftKey),
+ iconVisibleInMenu(-1)
{
#ifdef QT3_SUPPORT
static int qt_static_action_id = -1;