summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorMarkku Luukkainen <markku.luukkainen@digia.com>2009-05-18 12:21:44 (GMT)
committerMarkku Luukkainen <markku.luukkainen@digia.com>2009-05-18 12:21:44 (GMT)
commit3d49f6854f35f19866c4076d551228aa63f38e3d (patch)
tree85fcde1b8be1b1101ee9feb3ceee97f86766c98f /src/gui
parente4010084c0dcf05f417e5aca6c8c0ad1767599ca (diff)
downloadQt-3d49f6854f35f19866c4076d551228aa63f38e3d.zip
Qt-3d49f6854f35f19866c4076d551228aa63f38e3d.tar.gz
Qt-3d49f6854f35f19866c4076d551228aa63f38e3d.tar.bz2
Added slot that is triggered when back softkey is pressed
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/softkeys/main.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gui/softkeys/main.cpp b/src/gui/softkeys/main.cpp
index 6adbb2d..a92e2c2 100644
--- a/src/gui/softkeys/main.cpp
+++ b/src/gui/softkeys/main.cpp
@@ -19,6 +19,7 @@ public:
private slots:
void context1Slot();
void context3Slot();
+ void softKeySlot();
public:
MainWindow(QWidget *parent = 0);
@@ -68,7 +69,8 @@ MainWindow::MainWindow(QWidget *parent)
action4 = new QSoftKeyAction(QSoftKeyAction::Menu, QString("Menu"), central);
action5 = new QSoftKeyAction(QSoftKeyAction::ContextMenu,QString("ContextMenu"), central);
-
+ connect(action2, SIGNAL(triggered()), this, SLOT(softKeySlot()));
+
QList<QSoftKeyAction*> myActionList;
myActionList.append(action1);
myActionList.append(action2);
@@ -80,6 +82,7 @@ MainWindow::MainWindow(QWidget *parent)
QList<QSoftKeyAction*> myActionList2;
myActionList2.append(action4);
+ myActionList2.append(action2);
myActionList2.append(action5);
softKeyStack()->push(myActionList2);
@@ -106,6 +109,11 @@ void MainWindow::context3Slot()
{
}
+void MainWindow::softKeySlot()
+{
+
+}
+
int main(int argc, char *argv[])
{
QApplication app(argc, argv);