equal
deleted
inserted
replaced
61 #ifndef QT_NO_SOFTKEYMANAGER |
61 #ifndef QT_NO_SOFTKEYMANAGER |
62 QT_BEGIN_NAMESPACE |
62 QT_BEGIN_NAMESPACE |
63 |
63 |
64 class QSoftKeyManagerPrivate; |
64 class QSoftKeyManagerPrivate; |
65 |
65 |
66 const char MENU_ACTION_PROPERTY[] = "_q_menuaction"; |
66 const char MENU_ACTION_PROPERTY[] = "_q_menuAction"; |
|
67 const char FORCE_ENABLED_PROPERTY[] = "_q_forceEnabledInSoftkeys"; |
67 |
68 |
68 class Q_AUTOTEST_EXPORT QSoftKeyManager : public QObject |
69 class Q_AUTOTEST_EXPORT QSoftKeyManager : public QObject |
69 { |
70 { |
70 Q_OBJECT |
71 Q_OBJECT |
71 Q_DECLARE_PRIVATE(QSoftKeyManager) |
72 Q_DECLARE_PRIVATE(QSoftKeyManager) |
85 static bool handleCommand(int); |
86 static bool handleCommand(int); |
86 #endif |
87 #endif |
87 |
88 |
88 static QAction *createAction(StandardSoftKey standardKey, QWidget *actionWidget); |
89 static QAction *createAction(StandardSoftKey standardKey, QWidget *actionWidget); |
89 static QAction *createKeyedAction(StandardSoftKey standardKey, Qt::Key key, QWidget *actionWidget); |
90 static QAction *createKeyedAction(StandardSoftKey standardKey, Qt::Key key, QWidget *actionWidget); |
|
91 static QString standardSoftKeyText(StandardSoftKey standardKey); |
|
92 static void setForceEnabledInSoftkeys(QAction *action); |
|
93 static bool isForceEnabledInSofkeys(QAction *action); |
90 |
94 |
91 protected: |
95 protected: |
92 bool event(QEvent *e); |
96 bool event(QEvent *e); |
93 |
97 |
94 private: |
98 private: |
95 QSoftKeyManager(); |
99 QSoftKeyManager(); |
96 static QSoftKeyManager *instance(); |
100 static QSoftKeyManager *instance(); |
97 static const char *standardSoftKeyText(StandardSoftKey standardKey); |
|
98 bool appendSoftkeys(const QWidget &source, int level); |
101 bool appendSoftkeys(const QWidget &source, int level); |
99 QWidget *softkeySource(QWidget *previousSource, bool& recursiveMerging); |
102 QWidget *softkeySource(QWidget *previousSource, bool& recursiveMerging); |
100 bool handleUpdateSoftKeys(); |
103 bool handleUpdateSoftKeys(); |
101 |
104 |
102 private Q_SLOTS: |
105 private Q_SLOTS: |