mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3842 : Update icons in project tree
This commit is contained in:
@@ -660,6 +660,20 @@ void RimEnsembleCurveSet::defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrd
|
|||||||
}
|
}
|
||||||
|
|
||||||
uiTreeOrdering.skipRemainingChildren(true);
|
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)
|
||||||
|
{
|
||||||
|
icon = QIcon(":/updownarrow.png");
|
||||||
|
}
|
||||||
|
|
||||||
|
this->setUiIcon(icon);
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -565,6 +565,28 @@ void RimSummaryCurve::updateLegendsInPlot()
|
|||||||
plot->updateAllLegendItems();
|
plot->updateAllLegendItems();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
void RimSummaryCurve::defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName /*= ""*/)
|
||||||
|
{
|
||||||
|
RimPlotCurve::defineUiTreeOrdering(uiTreeOrdering, uiConfigName);
|
||||||
|
|
||||||
|
// Reset dynamic icon
|
||||||
|
this->setUiIcon(QIcon());
|
||||||
|
// Get static one
|
||||||
|
QIcon icon = this->uiIcon();
|
||||||
|
|
||||||
|
RimSummaryCurveCollection* coll = nullptr;
|
||||||
|
this->firstAncestorOrThisOfType(coll);
|
||||||
|
if (coll && coll->curveForSourceStepping() == this)
|
||||||
|
{
|
||||||
|
icon = QIcon(":/updownarrow.png");
|
||||||
|
}
|
||||||
|
|
||||||
|
this->setUiIcon(icon);
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -93,6 +93,9 @@ protected:
|
|||||||
|
|
||||||
void updateLegendsInPlot() override;
|
void updateLegendsInPlot() override;
|
||||||
|
|
||||||
|
|
||||||
|
void defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName = "") override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
RifSummaryReaderInterface* valuesSummaryReaderX() const;
|
RifSummaryReaderInterface* valuesSummaryReaderX() const;
|
||||||
RifSummaryReaderInterface* valuesSummaryReaderY() const;
|
RifSummaryReaderInterface* valuesSummaryReaderY() const;
|
||||||
|
|||||||
Reference in New Issue
Block a user