summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qaction.h
diff options
context:
space:
mode:
authorMarkku Luukkainen <markku.luukkainen@digia.com>2009-06-06 11:09:26 (GMT)
committerMarkku Luukkainen <markku.luukkainen@digia.com>2009-06-06 11:09:26 (GMT)
commitb8d6e02fc73fec1c1bc6b5b21e80104be61b946e (patch)
tree9ac5c61a690040ea9451e2686c3dcf6cafd6218e /src/gui/kernel/qaction.h
parentdfffbd4d134f9b8adc75b2c33c31a2ee859903e6 (diff)
downloadQt-b8d6e02fc73fec1c1bc6b5b21e80104be61b946e.zip
Qt-b8d6e02fc73fec1c1bc6b5b21e80104be61b946e.tar.gz
Qt-b8d6e02fc73fec1c1bc6b5b21e80104be61b946e.tar.bz2
Added SoftKeyRole
Diffstat (limited to 'src/gui/kernel/qaction.h')
-rw-r--r--src/gui/kernel/qaction.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/kernel/qaction.h b/src/gui/kernel/qaction.h
index d7bf8c3..e9c64c8 100644
--- a/src/gui/kernel/qaction.h
+++ b/src/gui/kernel/qaction.h
@@ -67,6 +67,7 @@ class Q_GUI_EXPORT QAction : public QObject
Q_DECLARE_PRIVATE(QAction)
Q_ENUMS(MenuRole)
+ Q_ENUMS(SoftKeyRole)
Q_PROPERTY(bool checkable READ isCheckable WRITE setCheckable)
Q_PROPERTY(bool checked READ isChecked WRITE setChecked DESIGNABLE isCheckable NOTIFY toggled)
Q_PROPERTY(bool enabled READ isEnabled WRITE setEnabled)
@@ -84,11 +85,16 @@ class Q_GUI_EXPORT QAction : public QObject
#endif
Q_PROPERTY(bool visible READ isVisible WRITE setVisible)
Q_PROPERTY(MenuRole menuRole READ menuRole WRITE setMenuRole)
+ Q_PROPERTY(SoftKeyRole softKeyRole READ softKeyRole WRITE setSoftKeyRole)
Q_PROPERTY(bool iconVisibleInMenu READ isIconVisibleInMenu WRITE setIconVisibleInMenu)
public:
enum MenuRole { NoRole, TextHeuristicRole, ApplicationSpecificRole, AboutQtRole,
AboutRole, PreferencesRole, QuitRole };
+ enum SoftKeyRole { Options, Select, Back, Next, Previous, Ok, Cancel, Edit,
+ View, BackSpace, EndEdit, RevertEdit, Deselect, Finish, Menu,
+ ContextMenu, Custom, SoftKey1, SoftKey2, SoftKey3, SoftKey4 };
+
explicit QAction(QObject* parent);
QAction(const QString &text, QObject* parent);
QAction(const QIcon &icon, const QString &text, QObject* parent);
@@ -168,6 +174,9 @@ public:
void setMenuRole(MenuRole menuRole);
MenuRole menuRole() const;
+ void setSoftKeyRole(SoftKeyRole softKeyRole);
+ SoftKeyRole softKeyRole() const;
+
void setIconVisibleInMenu(bool visible);
bool isIconVisibleInMenu() const;