connect(list, SIGNAL(activated(const QModelIndex &)),
this, SLOT(onItemActivated(const QModelIndex &)));
-#ifndef Q_WS_MAEMO_5
+#if !defined(Q_WS_MAEMO_5) && !defined(Q_OS_SYMBIAN)
addAction(tr("Close"), this, SLOT(close()), QString(),
QDialogButtonBox::RejectRole);
#endif // Q_WS_MAEMO_5
this, SLOT(onSchemeButtonClicked(int)));
connect(orientationBox, SIGNAL(buttonClicked(int)),
this, SLOT(onOrientationButtonClicked(int)));
+
+#ifdef Q_OS_SYMBIAN
+ QAction *closeAction = new QAction(parent? tr("Back"): tr("Exit"), this);
+ closeAction->setSoftKeyRole(QAction::NegativeSoftKey);
+ connect(closeAction, SIGNAL(triggered()), this, SLOT(close()));
+ QMainWindow::addAction(closeAction);
+#endif
}
void SettingsWindow::onSliderValueChanged(int value)
QAction *closeAction = new QAction(parent? tr("Back"): tr("Exit"), this);
closeAction->setSoftKeyRole(QAction::NegativeSoftKey);
connect(closeAction, SIGNAL(triggered()), this, SLOT(close()));
+ QMainWindow::addAction(closeAction);
#else
// Tool bar
setUnifiedTitleAndToolBarOnMac(true);
void AdopterWindow::show()
{
#ifdef Q_OS_SYMBIAN
+ foreach (QWidget *w, QApplication::allWidgets()) {
+ w->setContextMenuPolicy(Qt::NoContextMenu);
+ }
showMaximized();
#else
QMainWindow::show();
void Dyalog::show()
{
+ foreach (QWidget *w, QApplication::allWidgets()) {
+ w->setContextMenuPolicy(Qt::NoContextMenu);
+ }
showMaximized();
}
int Dyalog::exec()
{
- showMaximized();
+ show();
return QDialog::exec();
}
setCentralWidget(frame);
contentLayout = new QHBoxLayout();
frame->setLayout(contentLayout);
-#ifndef Q_OS_SYMBIAN
+#ifdef Q_OS_SYMBIAN
+ QAction *closeAction = new QAction(parent? tr("Back"): tr("Exit"), this);
+ closeAction->setSoftKeyRole(QAction::NegativeSoftKey);
+ connect(closeAction, SIGNAL(triggered()), this, SLOT(close()));
+ QMainWindow::addAction(closeAction);
+#else
buttonBox = new QDialogButtonBox(Qt::Vertical, this);
contentLayout->addWidget(buttonBox);
#endif // Q_OS_SYMBIAN
void ListWindow::show()
{
+ foreach (QWidget *w, QApplication::allWidgets()) {
+ w->setContextMenuPolicy(Qt::NoContextMenu);
+ }
showMaximized();
}