mirror of
https://github.com/tnodir/fort
synced 2024-11-15 08:35:08 +00:00
UI: Show app modal dialogs on top of Graph Window
This commit is contained in:
parent
f965b6a447
commit
8cdc72c41d
@ -35,7 +35,13 @@ QColor DialogUtil::getColor(const QColor &initial, const QString &title)
|
||||
|
||||
void DialogUtil::setupModalDialog(QWidget *box)
|
||||
{
|
||||
box->setWindowModality(box->parent() ? Qt::WindowModal : Qt::ApplicationModal);
|
||||
const bool isAppModal = !box->parent();
|
||||
|
||||
box->setWindowModality(isAppModal ? Qt::ApplicationModal : Qt::WindowModal);
|
||||
|
||||
if (isAppModal) {
|
||||
box->setWindowFlag(Qt::WindowStaysOnTopHint);
|
||||
}
|
||||
}
|
||||
|
||||
QMessageBox *DialogUtil::createMessageBox(const MessageBoxArg &ba, QWidget *parent)
|
||||
|
Loading…
Reference in New Issue
Block a user