From b83e03ce82c84eaaf08ac1df154dcaa88691063d Mon Sep 17 00:00:00 2001 From: Markku Luukkainen Date: Mon, 4 May 2009 13:17:52 +0200 Subject: Changed way how softkey command is mapped --- src/gui/softkeys/qsoftkeystack.cpp | 2 +- src/gui/softkeys/qsoftkeystack.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/softkeys/qsoftkeystack.cpp b/src/gui/softkeys/qsoftkeystack.cpp index 158d382..6cbcddd 100644 --- a/src/gui/softkeys/qsoftkeystack.cpp +++ b/src/gui/softkeys/qsoftkeystack.cpp @@ -50,7 +50,7 @@ void QSoftKeyStackPrivate::setNativeSoftKeys() QSoftKeyAction* softKeyAction = top.at(index); HBufC* text = qt_QString2HBufCNewL(softKeyAction->text()); CleanupStack::PushL(text); - nativeContainer->SetCommandL(index+veryWeirdMagic, softKeyAction->role(), *text); + nativeContainer->SetCommandL(index+veryWeirdMagic, SOFTKEYSTART+index, *text); CleanupStack::PopAndDestroy(); if (veryWeirdMagic==0) veryWeirdMagic=1; diff --git a/src/gui/softkeys/qsoftkeystack.h b/src/gui/softkeys/qsoftkeystack.h index d725954..98c2632 100644 --- a/src/gui/softkeys/qsoftkeystack.h +++ b/src/gui/softkeys/qsoftkeystack.h @@ -19,7 +19,8 @@ #include "qsoftkeyaction.h" #define QSoftkeySet QList - +#define SOFTKEYSTART 5000 +#define SOFTKEYEND 5004 class QSoftKeyStackPrivate : public QObject { Q_OBJECT -- cgit v0.12