mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Use updateConnectedEditors instead of a resize
This commit is contained in:
@@ -275,7 +275,8 @@ void RimEclipsePropertyFilter::updateFilterName()
|
|||||||
newFiltername = resultDefinition->resultVariable() + " ("
|
newFiltername = resultDefinition->resultVariable() + " ("
|
||||||
+ QString::number(lowerBound()) + " .. " + QString::number(upperBound) + ")";
|
+ QString::number(lowerBound()) + " .. " + QString::number(upperBound) + ")";
|
||||||
this->name = newFiltername;
|
this->name = newFiltername;
|
||||||
RiuMainWindow::instance()->forceProjectTreeRepaint();
|
|
||||||
|
uiCapability()->updateConnectedEditors();
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -267,6 +267,6 @@ void RimGeoMechPropertyFilter::updateFilterName()
|
|||||||
+ QString::number(lowerBound()) + " .. " + QString::number(upperBound) + ")";
|
+ QString::number(lowerBound()) + " .. " + QString::number(upperBound) + ")";
|
||||||
this->name = newFiltername;
|
this->name = newFiltername;
|
||||||
|
|
||||||
RiuMainWindow::instance()->forceProjectTreeRepaint();
|
uiCapability()->updateConnectedEditors();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2173,17 +2173,6 @@ void RiuMainWindow::setExpanded(const caf::PdmUiItem* uiItem, bool expanded)
|
|||||||
m_projectTreeView->setExpanded(uiItem, expanded);
|
m_projectTreeView->setExpanded(uiItem, expanded);
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
///
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
void RiuMainWindow::forceProjectTreeRepaint()
|
|
||||||
{
|
|
||||||
// This is a hack to force the treeview redraw.
|
|
||||||
// Needed for some reason when changing names and icons in the model
|
|
||||||
m_projectTreeView->scroll(0,1);
|
|
||||||
m_projectTreeView->scroll(0,-1);
|
|
||||||
}
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -84,7 +84,6 @@ public:
|
|||||||
|
|
||||||
void refreshAnimationActions();
|
void refreshAnimationActions();
|
||||||
void updateScaleValue();
|
void updateScaleValue();
|
||||||
void forceProjectTreeRepaint();
|
|
||||||
|
|
||||||
caf::PdmUiTreeView* projectTreeView() { return m_projectTreeView;}
|
caf::PdmUiTreeView* projectTreeView() { return m_projectTreeView;}
|
||||||
RiuProcessMonitor* processMonitor();
|
RiuProcessMonitor* processMonitor();
|
||||||
|
|||||||
Reference in New Issue
Block a user