#6462 Add reordering to color legend items

This commit is contained in:
Magne Sjaastad
2020-09-08 09:23:27 +02:00
parent b0448043f3
commit cbce19bb65
6 changed files with 62 additions and 16 deletions

View File

@@ -48,6 +48,7 @@ public:
QString colorLegendName();
void setReadOnly( bool doReadOnly );
void addReorderCapability();
void appendColorLegendItem( RimColorLegendItem* colorLegendItem );
std::vector<RimColorLegendItem*> colorLegendItems() const;
@@ -63,6 +64,9 @@ public:
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
void defineUiTreeOrdering( caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName ) override;
private:
void orderChanged( const caf::SignalEmitter* emitter );
private:
caf::PdmField<QString> m_colorLegendName;
caf::PdmChildArrayField<RimColorLegendItem*> m_colorLegendItems;