82 void clearSoftkeys(CEikButtonGroupContainer &cba); |
83 void clearSoftkeys(CEikButtonGroupContainer &cba); |
83 QString softkeyText(QAction &softkeyAction); |
84 QString softkeyText(QAction &softkeyAction); |
84 QAction *highestPrioritySoftkey(QAction::SoftKeyRole role); |
85 QAction *highestPrioritySoftkey(QAction::SoftKeyRole role); |
85 static bool actionPriorityMoreThan(const QAction* item1, const QAction* item2); |
86 static bool actionPriorityMoreThan(const QAction* item1, const QAction* item2); |
86 void setNativeSoftkey(CEikButtonGroupContainer &cba, TInt position, TInt command, const TDesC& text); |
87 void setNativeSoftkey(CEikButtonGroupContainer &cba, TInt position, TInt command, const TDesC& text); |
|
88 QPoint softkeyIconPosition(int position, QSize sourceSize, QSize targetSize); |
|
89 QPixmap prepareSoftkeyPixmap(QPixmap src, int position, QSize targetSize); |
87 bool isOrientationLandscape(); |
90 bool isOrientationLandscape(); |
88 QSize cbaIconSize(CEikButtonGroupContainer *cba, int position); |
91 QSize cbaIconSize(CEikButtonGroupContainer *cba, int position); |
89 bool setSoftkeyImage(CEikButtonGroupContainer *cba, QAction &action, int position); |
92 bool setSoftkeyImage(CEikButtonGroupContainer *cba, QAction &action, int position); |
90 bool setSoftkey(CEikButtonGroupContainer &cba, QAction::SoftKeyRole role, int position); |
93 bool setSoftkey(CEikButtonGroupContainer &cba, QAction::SoftKeyRole role, int position); |
91 bool setLeftSoftkey(CEikButtonGroupContainer &cba); |
94 bool setLeftSoftkey(CEikButtonGroupContainer &cba); |
93 bool setRightSoftkey(CEikButtonGroupContainer &cba); |
96 bool setRightSoftkey(CEikButtonGroupContainer &cba); |
94 void setSoftkeys(CEikButtonGroupContainer &cba); |
97 void setSoftkeys(CEikButtonGroupContainer &cba); |
95 |
98 |
96 private: |
99 private: |
97 QHash<int, QAction*> realSoftKeyActions; |
100 QHash<int, QAction*> realSoftKeyActions; |
98 QSize cachedCbaIconSize[2]; |
101 QSize cachedCbaIconSize[4]; |
99 bool skipNextUpdate; |
102 QBitArray cbaHasImage; |
100 }; |
103 }; |
101 |
104 |
102 |
105 |
103 QT_END_NAMESPACE |
106 QT_END_NAMESPACE |
104 |
107 |