162 bool hasMixedSelectionNumericFormat();
175 Q_DECL_DEPRECATED QColor selectionForegroundColor()
SIP_DEPRECATED;
186 QColor selectionBackgroundColor();
196 Qt::Alignment selectionHorizontalAlignment();
206 Qt::Alignment selectionVerticalAlignment();
233 double selectionRowHeight();
241 double selectionColumnWidth();
247 double tableRowHeight(
int row );
253 double tableColumnWidth(
int column );
263 void setTableRowHeight(
int row,
double height );
273 void setTableColumnWidth(
int column,
double width );
280 QList<int> rowsAssociatedWithSelection();
287 QList<int> columnsAssociatedWithSelection();
294 QVariantList tableHeaders()
const;
299 bool isHeaderCellSelected();
308 void insertRowsBelow();
315 void insertRowsAbove();
322 void insertColumnsBefore();
329 void insertColumnsAfter();
343 void deleteColumns();
350 void expandRowSelection();
357 void expandColumnSelection();
362 void clearSelectedCells();
372 Q_DECL_DEPRECATED
void setSelectionForegroundColor(
const QColor &color )
SIP_DEPRECATED;
380 void setSelectionBackgroundColor(
const QColor &color );
390 void setSelectionHorizontalAlignment( Qt::Alignment alignment );
400 void setSelectionVerticalAlignment( Qt::Alignment alignment );
407 void setSelectionCellProperty(
const QgsProperty &property );
421 void setSelectionRowHeight(
double height );
428 void setSelectionColumnWidth(
double height );
433 void setIncludeTableHeader(
bool included );
440 void setTableHeaders(
const QVariantList &headers );
443 void keyPressEvent( QKeyEvent *event )
override;
459 void updateNumericFormatForIndex(
const QModelIndex &index );
466 PresetBackgroundColorRole = Qt::UserRole + 1,
476 void updateHeaders();
478 bool collectConsecutiveRowRange(
const QModelIndexList &list,
int &minRow,
int &maxRow )
const;
479 bool collectConsecutiveColumnRange(
const QModelIndexList &list,
int &minColumn,
int &maxColumn )
const;
480 QList< int > collectUniqueRows(
const QModelIndexList &list )
const;
481 QList< int > collectUniqueColumns(
const QModelIndexList &list )
const;
483 int mBlockSignals = 0;
484 QHash< QTableWidgetItem *, QgsNumericFormat * > mNumericFormats;
485 QMenu *mHeaderMenu =
nullptr;
486 bool mIncludeHeader =
false;
487 bool mFirstSet =
true;
489 friend class QgsTableEditorDelegate;