GUI: Make mainwindow parent of Settings-dialog.

This commit is contained in:
Kimmo Varis 2009-06-06 12:51:14 +03:00
parent 3e0f1a5e56
commit 13eb74173c
3 changed files with 7 additions and 3 deletions

View File

@ -291,7 +291,7 @@ void MainWindow::CheckDone()
void MainWindow::ProgramSettings()
{
SettingsDialog dialog(mSettings, mApplications);
SettingsDialog dialog(mSettings, mApplications, this);
if (dialog.exec() == QDialog::Accepted)
{
dialog.SaveCheckboxValues();

View File

@ -18,12 +18,16 @@
#include "settingsdialog.h"
#include <QDialog>
#include <QWidget>
#include <QLabel>
#include <QDebug>
#include <QTabWidget>
#include "applicationdialog.h"
SettingsDialog::SettingsDialog(QSettings &programSettings, ApplicationList &list) :
SettingsDialog::SettingsDialog(QSettings &programSettings, ApplicationList &list,
QWidget *parent) :
QDialog(parent),
mSettings(programSettings),
mApplications(list)
{

View File

@ -41,7 +41,7 @@ class SettingsDialog : public QDialog
{
Q_OBJECT
public:
SettingsDialog(QSettings &programSettings, ApplicationList &list);
SettingsDialog(QSettings &programSettings, ApplicationList &list, QWidget *parent = 0);
virtual ~SettingsDialog();
/**