mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
#849 Added Import Summary Case command
This commit is contained in:
@@ -641,26 +641,6 @@ void RiuMainPlotWindow::hideAllDockWindows()
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuMainPlotWindow::storeTreeViewState()
|
||||
{
|
||||
if (m_projectTreeView)
|
||||
{
|
||||
QString treeViewState;
|
||||
RimTreeViewStateSerializer::storeTreeViewStateToString(m_projectTreeView->treeView(), treeViewState);
|
||||
|
||||
QModelIndex mi = m_projectTreeView->treeView()->currentIndex();
|
||||
|
||||
QString encodedModelIndexString;
|
||||
RimTreeViewStateSerializer::encodeStringFromModelIndex(mi, encodedModelIndexString);
|
||||
|
||||
RiaApplication::instance()->project()->treeViewState = treeViewState;
|
||||
RiaApplication::instance()->project()->currentModelIndexPath = encodedModelIndexString;
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -668,14 +648,14 @@ void RiuMainPlotWindow::restoreTreeViewState()
|
||||
{
|
||||
if (m_projectTreeView)
|
||||
{
|
||||
QString stateString = RiaApplication::instance()->project()->treeViewState;
|
||||
QString stateString = RiaApplication::instance()->project()->plotWindowTreeViewState;
|
||||
if (!stateString.isEmpty())
|
||||
{
|
||||
m_projectTreeView->treeView()->collapseAll();
|
||||
RimTreeViewStateSerializer::applyTreeViewStateFromString(m_projectTreeView->treeView(), stateString);
|
||||
}
|
||||
|
||||
QString currentIndexString = RiaApplication::instance()->project()->currentModelIndexPath;
|
||||
QString currentIndexString = RiaApplication::instance()->project()->plotWindowCurrentModelIndexPath;
|
||||
if (!currentIndexString.isEmpty())
|
||||
{
|
||||
QModelIndex mi = RimTreeViewStateSerializer::getModelIndexFromString(m_projectTreeView->treeView()->model(), currentIndexString);
|
||||
|
||||
Reference in New Issue
Block a user