summaryrefslogtreecommitdiffstats
path: root/examples/camera/camera.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/camera/camera.cpp')
-rw-r--r--examples/camera/camera.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/camera/camera.cpp b/examples/camera/camera.cpp
index ab8ebf33d3..8658e5a205 100644
--- a/examples/camera/camera.cpp
+++ b/examples/camera/camera.cpp
@@ -84,6 +84,16 @@ Camera::Camera(QWidget *parent) :
}
ui->menuDevices->addAction(videoDeviceAction);
}
+#if defined(Q_WS_SIMULATOR)
+ QMenu *optionsMenu = new QMenu(this);
+ QAction *optionsSoftKey = new QAction("Options", this);
+ optionsSoftKey->setSoftKeyRole(QAction::PositiveSoftKey);
+ optionsMenu->addAction(ui->actionStartCamera);
+ optionsMenu->addAction(ui->actionStopCamera);
+ optionsMenu->addAction(ui->actionSettings);
+ optionsSoftKey->setMenu(optionsMenu);
+ addAction(optionsSoftKey);
+#endif
connect(videoDevicesGroup, SIGNAL(triggered(QAction*)), this, SLOT(updateCameraDevice(QAction*)));
connect(ui->captureWidget, SIGNAL(currentChanged(int)), SLOT(updateCaptureMode()));