#4187 Make WindowCloseButtonHint part of the default dialog flags

* Dialogs on the Qt5 build has the close button disabled and this fixes that.
This commit is contained in:
Gaute Lindkvist 2019-03-08 10:23:18 +01:00
parent e00f983360
commit b22ca46dc5
2 changed files with 8 additions and 9 deletions

View File

@ -127,16 +127,15 @@ void RicShowPlotDataFeature::showTabbedTextWindow(const QString& title, std::fun
RiuPlotMainWindow* plotwindow = RiaApplication::instance()->mainPlotWindow();
CVF_ASSERT(plotwindow);
RiuShowTabbedPlotDataDialog* textWiget = new RiuShowTabbedPlotDataDialog();
textWiget->setMinimumSize(800, 600);
RiuShowTabbedPlotDataDialog* textWidget = new RiuShowTabbedPlotDataDialog();
textWidget->setMinimumSize(800, 600);
textWiget->setWindowTitle(title);
textWiget->setDescription(title);
textWiget->setTextProvider(textProvider);
textWidget->setWindowTitle(title);
textWidget->setDescription(title);
textWidget->setTextProvider(textProvider);
textWidget->show();
textWiget->show();
plotwindow->addToTemporaryWidgets(textWiget);
plotwindow->addToTemporaryWidgets(textWidget);
}
//--------------------------------------------------------------------------------------------------

View File

@ -23,7 +23,7 @@
//--------------------------------------------------------------------------------------------------
Qt::WindowFlags RiuTools::defaultDialogFlags()
{
Qt::WindowFlags f = Qt::WindowTitleHint | Qt::WindowSystemMenuHint;
Qt::WindowFlags f = Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint;
return f;
}