44 bool editable()
const;
49 void setEditable(
bool editable );
54 bool hasColor()
const;
64 QStringList headerNames()
const;
69 QString headerTooltip(
const int section )
const;
74 bool isValid( QString *errorMessage
SIP_OUT =
nullptr );
109 bool removeField(
const int position, QString *errorMessage
SIP_OUT =
nullptr );
114 bool removeColorOrRamp( QString *errorMessage
SIP_OUT =
nullptr );
119 bool insertRow(
const int position,
const QVariantList &rowData, QString *errorMessage
SIP_OUT =
nullptr );
124 bool insertColor(
int position, QString *errorMessage
SIP_OUT =
nullptr );
129 bool insertRamp(
int position, QString *errorMessage
SIP_OUT =
nullptr );
134 bool removeRow(
const int position, QString *errorMessage
SIP_OUT =
nullptr );
138 bool mEditable =
false;
141 bool editChecks( QString *errorMessage =
nullptr );
143 QString ratColorHeaderName()
const;
147 int rowCount(
const QModelIndex &parent )
const override;
148 int columnCount(
const QModelIndex &parent )
const override;
149 QVariant data(
const QModelIndex &index,
int role )
const override;
150 bool setData(
const QModelIndex &index,
const QVariant &value,
int role )
override;
151 QVariant headerData(
int section, Qt::Orientation orientation,
int role )
const override;
152 Qt::ItemFlags flags(
const QModelIndex &index )
const override;