mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Merge remote-tracking branch 'origin/2018.11.01-patch' into dev
This commit is contained in:
@@ -660,6 +660,25 @@ void RimEnsembleCurveSet::defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrd
|
||||
}
|
||||
|
||||
uiTreeOrdering.skipRemainingChildren(true);
|
||||
|
||||
// Reset dynamic icon
|
||||
this->setUiIcon(QIcon());
|
||||
// Get static one
|
||||
QIcon icon = this->uiIcon();
|
||||
|
||||
RimEnsembleCurveSetCollection* coll = nullptr;
|
||||
this->firstAncestorOrThisOfType(coll);
|
||||
if (coll && coll->curveSetForSourceStepping() == this)
|
||||
{
|
||||
QPixmap combined = icon.pixmap(16, 16);
|
||||
QPainter painter(&combined);
|
||||
QPixmap updownpixmap(":/StepUpDownCorner16x16.png");
|
||||
painter.drawPixmap(0,0,updownpixmap);
|
||||
|
||||
icon = QIcon(combined);
|
||||
}
|
||||
|
||||
this->setUiIcon(icon);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user