mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1293 Show plot data in text widget
This commit is contained in:
@@ -114,6 +114,16 @@ void RiuMainPlotWindow::cleanupGuiBeforeProjectClose()
|
||||
{
|
||||
m_pdmUiPropertyView->showProperties(NULL);
|
||||
}
|
||||
|
||||
for (QWidget* w : m_temporaryWidgets)
|
||||
{
|
||||
w->close();
|
||||
w->deleteLater();
|
||||
}
|
||||
|
||||
m_temporaryWidgets.clear();
|
||||
|
||||
setWindowTitle("Plots - ResInsight");
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -367,6 +377,16 @@ QList<QMdiSubWindow*> RiuMainPlotWindow::subWindowList(QMdiArea::WindowOrder ord
|
||||
return m_mdiArea->subWindowList(order);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuMainPlotWindow::addToTemporaryWidgets(QWidget* widget)
|
||||
{
|
||||
CVF_ASSERT(widget);
|
||||
|
||||
m_temporaryWidgets.push_back(widget);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -79,6 +79,8 @@ public:
|
||||
QMdiSubWindow* findMdiSubWindow(QWidget* viewer);
|
||||
QList<QMdiSubWindow*> subWindowList(QMdiArea::WindowOrder order);
|
||||
|
||||
void addToTemporaryWidgets(QWidget* widget);
|
||||
|
||||
protected:
|
||||
virtual void closeEvent(QCloseEvent* event);
|
||||
|
||||
@@ -124,4 +126,6 @@ private:
|
||||
caf::PdmUiPropertyView* m_pdmUiPropertyView;
|
||||
|
||||
bool m_blockSlotSubWindowActivated;
|
||||
|
||||
std::vector<QWidget*> m_temporaryWidgets;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user