m_settingsDialog->hide();
connect(m_settingsDialog, SIGNAL(enableAutomaticLocationUpdate(bool,int)),
this, SIGNAL(enableAutomaticLocationUpdate(bool,int)));
+ m_automaticUpdateLocationDialog = new QMessageBox(QMessageBox::Question,
+ tr("Automatic location update"), "",
+ QMessageBox::Yes | QMessageBox::No |
+ QMessageBox::Cancel, this);
+ connect(m_automaticUpdateLocationDialog, SIGNAL(finished(int)),
+ this, SLOT(automaticUpdateDialogFinished(int)));
createMenus();
setWindowTitle(tr("Situare"));
{
qDebug() << __PRETTY_FUNCTION__;
+ m_settingsDialog->readSettings();
m_settingsDialog->emitAutomaticLocationUpdateSettings();
}
m_viewPortHeight = size.height();
}
-bool MainWindow::showEnableAutomaticUpdateLocationDialog(const QString &text)
+void MainWindow::showEnableAutomaticUpdateLocationDialog(const QString &text)
{
- m_automaticUpdateLocationDialog = new QMessageBox(QMessageBox::Question,
- tr("Automatic location update"), text,
- QMessageBox::Yes | QMessageBox::No |
- QMessageBox::Cancel, this);
- connect(m_automaticUpdateLocationDialog, SIGNAL(finished(int)),
- this, SLOT(automaticUpdateDialogFinished(int)));
+ qDebug() << __PRETTY_FUNCTION__;
+
+ m_automaticUpdateLocationDialog->setText(text);
+
m_automaticUpdateLocationDialog->show();
}
* Shows dialog with enable automatic location update question.
*
* @param text text to show in dialog
- * @return true if accepted, false otherwise
*/
- bool showEnableAutomaticUpdateLocationDialog(const QString &text);
+ void showEnableAutomaticUpdateLocationDialog(const QString &text);
/**
* @brief Gets the username from member variable for saving purposes