mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-09 23:16:00 -06:00
Use updateConnectedEditors instead of a resize
This commit is contained in:
parent
d61c1ecb93
commit
61665dc7c9
@ -275,7 +275,8 @@ void RimEclipsePropertyFilter::updateFilterName()
|
||||
newFiltername = resultDefinition->resultVariable() + " ("
|
||||
+ QString::number(lowerBound()) + " .. " + QString::number(upperBound) + ")";
|
||||
this->name = newFiltername;
|
||||
RiuMainWindow::instance()->forceProjectTreeRepaint();
|
||||
|
||||
uiCapability()->updateConnectedEditors();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -267,6 +267,6 @@ void RimGeoMechPropertyFilter::updateFilterName()
|
||||
+ QString::number(lowerBound()) + " .. " + QString::number(upperBound) + ")";
|
||||
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);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
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 updateScaleValue();
|
||||
void forceProjectTreeRepaint();
|
||||
|
||||
caf::PdmUiTreeView* projectTreeView() { return m_projectTreeView;}
|
||||
RiuProcessMonitor* processMonitor();
|
||||
|
Loading…
Reference in New Issue
Block a user