Changed: Define parent of QDialog

This commit is contained in:
kervala 2016-05-29 20:30:53 +02:00
parent 3f8b95eab2
commit f538c6000a
5 changed files with 5 additions and 5 deletions

View file

@ -119,7 +119,7 @@ void CMainWindow::onConfigureClicked()
void CMainWindow::onProfiles()
{
CProfilesDialog dialog;
CProfilesDialog dialog(this);
if (dialog.exec())
{

View file

@ -41,7 +41,7 @@
#define new DEBUG_NEW
#endif
COperationDialog::COperationDialog():QDialog(), m_aborting(false)
COperationDialog::COperationDialog(QWidget *parent):QDialog(parent), m_aborting(false), m_operation(OperationNone)
{
setupUi(this);

View file

@ -35,7 +35,7 @@ class COperationDialog : public QDialog, public Ui::OperationDialog, public IOpe
Q_OBJECT
public:
COperationDialog();
COperationDialog(QWidget *parent = NULL);
virtual ~COperationDialog();
public slots:

View file

@ -23,7 +23,7 @@
#define new DEBUG_NEW
#endif
CProfilesDialog::CProfilesDialog():QDialog(), m_currentProfileIndex(-1)
CProfilesDialog::CProfilesDialog(QWidget *parent):QDialog(parent), m_currentProfileIndex(-1)
{
setupUi(this);

View file

@ -33,7 +33,7 @@ class CProfilesDialog : public QDialog, public Ui::ProfilesDialog
Q_OBJECT
public:
CProfilesDialog();
CProfilesDialog(QWidget *parent = NULL);
virtual ~CProfilesDialog();
private slots: