summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qsoftkeymanager_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kernel/qsoftkeymanager_p.h')
-rw-r--r--src/gui/kernel/qsoftkeymanager_p.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/gui/kernel/qsoftkeymanager_p.h b/src/gui/kernel/qsoftkeymanager_p.h
index 630dd9f..743b4d4 100644
--- a/src/gui/kernel/qsoftkeymanager_p.h
+++ b/src/gui/kernel/qsoftkeymanager_p.h
@@ -55,6 +55,7 @@
#include <QtCore/qobject.h>
#include "QtGui/qaction.h"
+
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE
@@ -64,9 +65,17 @@ class QSoftKeyManager : public QObject
Q_OBJECT
public:
+
+ enum StandardSoftKey {
+ OkSoftKey,
+ SelectSoftKey,
+ DoneSoftKey,
+ CancelSoftKey,
+ };
+
static void updateSoftKeys(bool force = false);
- static QAction *createAction(QAction::SoftKeyRole standardRole, QWidget *actionWidget);
- static QAction *createKeyedAction(QAction::SoftKeyRole standardRole, Qt::Key key, QWidget *actionWidget);
+ static QAction *createAction(StandardSoftKey standardKey, QWidget *actionWidget);
+ static QAction *createKeyedAction(StandardSoftKey standardKey, Qt::Key key, QWidget *actionWidget);
#ifdef Q_WS_S60
static bool handleCommand(int);
@@ -75,7 +84,7 @@ public:
private:
QSoftKeyManager();
static QSoftKeyManager *instance();
- static const char *standardSoftKeyText(QAction::SoftKeyRole role);
+ static const char *standardSoftKeyText(StandardSoftKey standardKey);
static void updateSoftKeys_sys(const QList<QAction*> &softKeys);
static QSoftKeyManager *self;