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 );
110 bool removeField(
const int position, QString *errorMessage
SIP_OUT =
nullptr );
115 bool removeColorOrRamp( QString *errorMessage
SIP_OUT =
nullptr );
120 bool insertRow(
const int position,
const QVariantList &rowData, QString *errorMessage
SIP_OUT =
nullptr );
125 bool insertColor(
int position, QString *errorMessage
SIP_OUT =
nullptr );
130 bool insertRamp(
int position, QString *errorMessage
SIP_OUT =
nullptr );
135 bool removeRow(
const int position, QString *errorMessage
SIP_OUT =
nullptr );
140 bool mEditable =
false;
143 bool editChecks( QString *errorMessage =
nullptr );
145 QString ratColorHeaderName( )
const;
149 int rowCount(
const QModelIndex &parent )
const override;
150 int columnCount(
const QModelIndex &parent )
const override;
151 QVariant data(
const QModelIndex &index,
int role )
const override;
152 bool setData(
const QModelIndex &index,
const QVariant &value,
int role )
override;
153 QVariant headerData(
int section, Qt::Orientation orientation,
int role )
const override;
154 Qt::ItemFlags flags(
const QModelIndex &index )
const override;