45 bool editable()
const;
50 void setEditable(
bool editable );
55 bool hasColor()
const;
65 QStringList headerNames( )
const;
70 QString headerTooltip(
const int section )
const;
75 bool isValid( QString *errorMessage
SIP_OUT =
nullptr );
98 bool removeField(
const int position, QString *errorMessage
SIP_OUT =
nullptr );
103 bool removeColorOrRamp( QString *errorMessage
SIP_OUT =
nullptr );
108 bool insertRow(
const int position,
const QVariantList &rowData, QString *errorMessage
SIP_OUT =
nullptr );
113 bool insertColor(
int position, QString *errorMessage
SIP_OUT =
nullptr );
118 bool insertRamp(
int position, QString *errorMessage
SIP_OUT =
nullptr );
123 bool removeRow(
const int position, QString *errorMessage
SIP_OUT =
nullptr );
128 bool mEditable =
false;
131 bool editChecks( QString *errorMessage =
nullptr );
133 QString ratColorHeaderName( )
const;
137 int rowCount(
const QModelIndex &parent )
const override;
138 int columnCount(
const QModelIndex &parent )
const override;
139 QVariant data(
const QModelIndex &index,
int role )
const override;
140 bool setData(
const QModelIndex &index,
const QVariant &value,
int role )
override;
141 QVariant headerData(
int section, Qt::Orientation orientation,
int role )
const override;
142 Qt::ItemFlags flags(
const QModelIndex &index )
const override;