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()
const;
306 bool canMergeSelection()
const;
313 bool canSplitSelection()
const;
322 void insertRowsBelow();
329 void insertRowsAbove();
336 void insertColumnsBefore();
343 void insertColumnsAfter();
357 void deleteColumns();
364 void expandRowSelection();
371 void expandColumnSelection();
376 void clearSelectedCells();
386 Q_DECL_DEPRECATED
void setSelectionForegroundColor(
const QColor &color )
SIP_DEPRECATED;
394 void setSelectionBackgroundColor(
const QColor &color );
404 void setSelectionHorizontalAlignment( Qt::Alignment alignment );
414 void setSelectionVerticalAlignment( Qt::Alignment alignment );
421 void setSelectionCellProperty(
const QgsProperty &property );
435 void setSelectionRowHeight(
double height );
442 void setSelectionColumnWidth(
double height );
447 void setIncludeTableHeader(
bool included );
454 void setTableHeaders(
const QVariantList &headers );
462 void mergeSelectedCells();
470 void splitSelectedCells();
473 void keyPressEvent( QKeyEvent *event )
override;
489 void updateNumericFormatForIndex(
const QModelIndex &index );
496 PresetBackgroundColorRole = Qt::UserRole + 1,
506 void updateHeaders();
508 bool collectConsecutiveRowRange(
const QModelIndexList &list,
int &minRow,
int &maxRow )
const;
509 bool collectConsecutiveColumnRange(
const QModelIndexList &list,
int &minColumn,
int &maxColumn )
const;
510 QList< int > collectUniqueRows(
const QModelIndexList &list )
const;
511 QList< int > collectUniqueColumns(
const QModelIndexList &list )
const;
512 bool isRectangularSelection(
const QModelIndexList &list )
const;
513 bool hasMergedCells(
const QModelIndexList &list )
const;
515 int mBlockSignals = 0;
516 QHash< QTableWidgetItem *, QgsNumericFormat * > mNumericFormats;
517 QMenu *mHeaderMenu =
nullptr;
518 QMenu *mCellMenu =
nullptr;
519 bool mIncludeHeader =
false;
520 bool mFirstSet =
true;
522 friend class QgsTableEditorDelegate;