display icon in tray for main window

This commit is contained in:
mrexodia 2017-03-30 04:32:24 +02:00
parent 897d226c2b
commit 0fa6165ab7
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
3 changed files with 7 additions and 7 deletions

View File

@ -9,7 +9,7 @@ createNewDialog::createNewDialog(QWidget *parent) :
ui(new Ui::createNewDialog)
{
ui->setupUi(this);
w = new MainWindow(this);
w = new MainWindow(nullptr);
w->core = new QRCore ();
}
@ -22,7 +22,7 @@ void createNewDialog::on_pushButton_2_clicked()
{
// Close dialog and open OptionsDialog
close();
NewFileDialog* n = new NewFileDialog(this);
NewFileDialog* n = new NewFileDialog(nullptr);
n->show();
}

View File

@ -100,7 +100,7 @@ void NewFileDialog::on_loadFileButton_clicked()
} else {
// Close dialog and open OptionsDialog
close();
OptionsDialog* o = new OptionsDialog(this);
OptionsDialog* o = new OptionsDialog(nullptr);
o->setFilename (fname, this->strippedName(fname));
o->exec();
}
@ -145,7 +145,7 @@ void NewFileDialog::on_recentsList_itemDoubleClicked(QListWidgetItem *item)
QString sitem = data.toString();
// Close dialog and open OptionsDialog
close();
OptionsDialog* o = new OptionsDialog(this);
OptionsDialog* o = new OptionsDialog(nullptr);
o->setFilename (sitem, this->strippedName(sitem));
o->exec();
}
@ -177,7 +177,7 @@ void NewFileDialog::on_createButton_clicked()
{
// Close dialog and open create new file dialog
close();
createNewDialog* n = new createNewDialog(this);
createNewDialog* n = new createNewDialog(nullptr);
n->exec();
}

View File

@ -73,7 +73,7 @@ void OptionsDialog::on_okButton_clicked()
//ui->progressBar->setValue(5);
// Close dialog and open OptionsDialog
this->w = new MainWindow(this);
this->w = new MainWindow(nullptr);
this->w->core = this->core;
// Fill asm plugins in hexdump combo
@ -234,7 +234,7 @@ void OptionsDialog::on_cancelButton_clicked()
this->core = NULL; // implicit by delete?
// Close dialog and open OptionsDialog
close();
NewFileDialog* n = new NewFileDialog(this);
NewFileDialog* n = new NewFileDialog(nullptr);
n->show();
}