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();
|
RiuPlotMainWindow* plotwindow = RiaApplication::instance()->mainPlotWindow();
|
||||||
CVF_ASSERT(plotwindow);
|
CVF_ASSERT(plotwindow);
|
||||||
|
|
||||||
RiuShowTabbedPlotDataDialog* textWiget = new RiuShowTabbedPlotDataDialog();
|
RiuShowTabbedPlotDataDialog* textWidget = new RiuShowTabbedPlotDataDialog();
|
||||||
textWiget->setMinimumSize(800, 600);
|
textWidget->setMinimumSize(800, 600);
|
||||||
|
|
||||||
textWiget->setWindowTitle(title);
|
textWidget->setWindowTitle(title);
|
||||||
textWiget->setDescription(title);
|
textWidget->setDescription(title);
|
||||||
textWiget->setTextProvider(textProvider);
|
textWidget->setTextProvider(textProvider);
|
||||||
|
textWidget->show();
|
||||||
|
|
||||||
textWiget->show();
|
plotwindow->addToTemporaryWidgets(textWidget);
|
||||||
|
|
||||||
plotwindow->addToTemporaryWidgets(textWiget);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
Qt::WindowFlags RiuTools::defaultDialogFlags()
|
Qt::WindowFlags RiuTools::defaultDialogFlags()
|
||||||
{
|
{
|
||||||
Qt::WindowFlags f = Qt::WindowTitleHint | Qt::WindowSystemMenuHint;
|
Qt::WindowFlags f = Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint;
|
||||||
|
|
||||||
return f;
|
return f;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user