mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#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:
parent
e00f983360
commit
b22ca46dc5
@ -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);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user