summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qmainwindow.cpp
diff options
context:
space:
mode:
authorMarkku Luukkainen <markku.luukkainen@digia.com>2009-06-05 15:02:56 (GMT)
committerMarkku Luukkainen <markku.luukkainen@digia.com>2009-06-05 15:02:56 (GMT)
commitdfffbd4d134f9b8adc75b2c33c31a2ee859903e6 (patch)
treec705b68fc0ff7ac73d18413cc48eb857cc97015c /src/gui/widgets/qmainwindow.cpp
parent93ea4a9cd6336de6e2a63b1ca075a7fdb835cfa7 (diff)
downloadQt-dfffbd4d134f9b8adc75b2c33c31a2ee859903e6.zip
Qt-dfffbd4d134f9b8adc75b2c33c31a2ee859903e6.tar.gz
Qt-dfffbd4d134f9b8adc75b2c33c31a2ee859903e6.tar.bz2
Initial version of softkey implementation that doesn't use
softkeystack but instead softkeys are stored in QWidgets.
Diffstat (limited to 'src/gui/widgets/qmainwindow.cpp')
-rw-r--r--src/gui/widgets/qmainwindow.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/gui/widgets/qmainwindow.cpp b/src/gui/widgets/qmainwindow.cpp
index 37b1398..20270b4 100644
--- a/src/gui/widgets/qmainwindow.cpp
+++ b/src/gui/widgets/qmainwindow.cpp
@@ -69,6 +69,7 @@ QT_END_NAMESPACE
#ifndef QT_NO_SOFTKEYSTACK
#include <qsoftkeystack.h>
#endif
+#include <qsoftkeyaction.h>
QT_BEGIN_NAMESPACE
@@ -121,9 +122,9 @@ void QMainWindowPrivate::init()
explicitIconSize = false;
q->setAttribute(Qt::WA_Hover);
-#if defined(Q_OS_SYMBIAN) && !defined(QT_NO_SOFTKEYSTACK)
- softKeyStack = new QSoftKeyStack(q);
-#endif
+//#if defined(Q_OS_SYMBIAN) && !defined(QT_NO_SOFTKEYSTACK)
+// softKeyStack = new QSoftKeyStack(q);
+//#endif
}
/*
@@ -495,6 +496,10 @@ void QMainWindow::setMenuBar(QMenuBar *menuBar)
oldMenuBar->deleteLater();
}
d->layout->setMenuBar(menuBar);
+ if (menuBar) {
+ QSoftKeyAction* menu = new QSoftKeyAction(QSoftKeyAction::Menu, QString::fromLatin1("Menu"), this);
+ setSoftKeys(menu);
+ }
}
/*!