mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3898, #3899, #3900 Better source stepping command icons. Combine curve and stepping icons. Improved Clear source curve command enabling
This commit is contained in:
@@ -581,7 +581,12 @@ void RimSummaryCurve::defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrderin
|
||||
this->firstAncestorOrThisOfType(coll);
|
||||
if (coll && coll->curveForSourceStepping() == this)
|
||||
{
|
||||
icon = QIcon(":/updownarrow.png");
|
||||
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