Qt: CustomizeWindowHint should be set for no-close-button
This commit is contained in:
parent
42c5f9169f
commit
9c2244f40e
|
@ -111,6 +111,7 @@ void LogWindow::createUi()
|
|||
QIcon icon;
|
||||
icon.addFile(QString::fromUtf8(":/icons/duck.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
setWindowIcon(icon);
|
||||
setWindowFlag(Qt::CustomizeWindowHint, true);
|
||||
setWindowFlag(Qt::WindowCloseButtonHint, false);
|
||||
updateWindowTitle();
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@ QtModalProgressCallback::QtModalProgressCallback(QWidget* parent_widget, float s
|
|||
m_dialog.setModal(parent_widget != nullptr);
|
||||
m_dialog.setAutoClose(false);
|
||||
m_dialog.setAutoReset(false);
|
||||
m_dialog.setWindowFlag(Qt::CustomizeWindowHint, true);
|
||||
m_dialog.setWindowFlag(Qt::WindowCloseButtonHint, false);
|
||||
connect(&m_dialog, &QProgressDialog::canceled, this, &QtModalProgressCallback::dialogCancelled);
|
||||
checkForDelayedShow();
|
||||
|
|
Loading…
Reference in New Issue