21 #ifndef __qMRMLColorListView_h 22 #define __qMRMLColorListView_h 28 #include "qMRMLWidgetsExport.h" 30 class QSortFilterProxyModel;
31 class qMRMLColorListViewPrivate;
39 Q_PROPERTY(
bool showOnlyNamedColors READ showOnlyNamedColors WRITE setShowOnlyNamedColors)
46 QSortFilterProxyModel* sortFilterProxyModel()
const;
48 bool showOnlyNamedColors()
const;
55 void setShowOnlyNamedColors(
bool);
60 void colorSelected(
int index);
61 void colorSelected(
const QColor& color);
62 void colorSelected(
const QString& name);
65 void currentChanged(
const QModelIndex&,
const QModelIndex&)
override;
68 QScopedPointer<qMRMLColorListViewPrivate>
d_ptr;
Abstract MRML node to represent color information.
QScopedPointer< qMRMLColorListViewPrivate > d_ptr
Abstract Superclass for all specific types of MRML nodes.