summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qsoftkeymanager_s60_p.h
diff options
context:
space:
mode:
authorJanne Anttila <janne.anttila@digia.com>2010-02-04 13:57:44 (GMT)
committerJanne Anttila <janne.anttila@digia.com>2010-02-04 14:02:51 (GMT)
commit94abb3ee93aa09f79640e14fed89b286c57ce05c (patch)
tree2dbcfd5a0e40cd6233d638d5f8165fcccc1026d3 /src/gui/kernel/qsoftkeymanager_s60_p.h
parent98352b43fa2bce30bcea0965ad3d05109404d166 (diff)
downloadQt-94abb3ee93aa09f79640e14fed89b286c57ce05c.zip
Qt-94abb3ee93aa09f79640e14fed89b286c57ce05c.tar.gz
Qt-94abb3ee93aa09f79640e14fed89b286c57ce05c.tar.bz2
Initial support for S60 softkey icons.
The logic for resolving the icon size in landscape mode for S60 5.0 (5800XM) is somewhat fragile, but better way is not yet know. Also the 50% transparent mask what CBA implementation tries to create for pressed down CB Abuttons fails for some reason. When button is pressed down there are drawing artifacts in softkey images. These issues will be tried to resolve with later commits Task-number: QTBUG-7314 Review-By: Sami Merila
Diffstat (limited to 'src/gui/kernel/qsoftkeymanager_s60_p.h')
-rw-r--r--src/gui/kernel/qsoftkeymanager_s60_p.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/kernel/qsoftkeymanager_s60_p.h b/src/gui/kernel/qsoftkeymanager_s60_p.h
index 46e3596..f8bd6d9 100644
--- a/src/gui/kernel/qsoftkeymanager_s60_p.h
+++ b/src/gui/kernel/qsoftkeymanager_s60_p.h
@@ -84,6 +84,8 @@ private:
QAction *highestPrioritySoftkey(QAction::SoftKeyRole role);
static bool actionPriorityMoreThan(const QAction* item1, const QAction* item2);
void setNativeSoftkey(CEikButtonGroupContainer &cba, TInt position, TInt command, const TDesC& text);
+ QPoint softkeyIconPosition(int position, QSize sourceSize, QSize targetSize);
+ QPixmap prepareSoftkeyPixmap(QPixmap src, int position, QSize targetSize);
bool isOrientationLandscape();
QSize cbaIconSize(CEikButtonGroupContainer *cba, int position);
bool setSoftkeyImage(CEikButtonGroupContainer *cba, QAction &action, int position);
@@ -95,7 +97,7 @@ private:
private:
QHash<int, QAction*> realSoftKeyActions;
- QSize cachedCbaIconSize[2];
+ QSize cachedCbaIconSize[4];
bool skipNextUpdate;
};