Move setWindowFlags to DPIAwareDialog

And use new helper in Utilites
This commit is contained in:
Pengfei
2021-08-31 10:39:43 +08:00
parent 85fff614d3
commit fb2c4decdb
7 changed files with 6 additions and 13 deletions
-1
View File
@@ -35,7 +35,6 @@ MainDialog::MainDialog(QWidget* parent)
: DPIAwareDialog(parent, 640, 256), ui(std::make_unique<Ui::MainDialog>()) {
ui->setupUi(this);
setWindowFlags(windowFlags() & (~Qt::WindowContextHelpButtonHint));
ui->buttonBox->button(QDialogButtonBox::StandardButton::Ok)->setEnabled(false);
ui->buttonBox->button(QDialogButtonBox::StandardButton::Reset)->setText(tr("Refresh"));