diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-04-16 15:01:00 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-04-17 20:49:36 +0200 |
commit | eb3b37de83c19b35197fbd5d288f32cc8b93bccf (patch) | |
tree | fd5753d53f178affcb08afad3127cdb5781762c3 /src/widgets/itemviews/qtablewidget.h | |
parent | bd49862e8e80dce6c0dfd45aeb6881f8496bcb14 (diff) |
Remove deprecated members from QtWidgets/itemviews classes
Cleaning up those that are trivial to remove because they have direct
replacements.
Change-Id: Ie9fecd8c4822ed1a8f378b210cc4c4d9a10f7e36
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/widgets/itemviews/qtablewidget.h')
-rw-r--r-- | src/widgets/itemviews/qtablewidget.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/widgets/itemviews/qtablewidget.h b/src/widgets/itemviews/qtablewidget.h index 70e2046400..53c55525cb 100644 --- a/src/widgets/itemviews/qtablewidget.h +++ b/src/widgets/itemviews/qtablewidget.h @@ -134,29 +134,11 @@ public: inline void setTextAlignment(int alignment) { setData(Qt::TextAlignmentRole, alignment); } -#if QT_DEPRECATED_SINCE(5, 13) - QT_DEPRECATED_X ("Use QTableWidgetItem::background() instead") - inline QColor backgroundColor() const - { return qvariant_cast<QColor>(data(Qt::BackgroundRole)); } - QT_DEPRECATED_X ("Use QTableWidgetItem::setBackground() instead") - inline void setBackgroundColor(const QColor &color) - { setData(Qt::BackgroundRole, color); } -#endif - inline QBrush background() const { return qvariant_cast<QBrush>(data(Qt::BackgroundRole)); } inline void setBackground(const QBrush &brush) { setData(Qt::BackgroundRole, brush.style() != Qt::NoBrush ? QVariant(brush) : QVariant()); } -#if QT_DEPRECATED_SINCE(5, 13) - QT_DEPRECATED_X ("Use QTableWidgetItem::foreground() instead") - inline QColor textColor() const - { return qvariant_cast<QColor>(data(Qt::ForegroundRole)); } - QT_DEPRECATED_X ("Use QTableWidgetItem::setForeground() instead") - inline void setTextColor(const QColor &color) - { setData(Qt::ForegroundRole, color); } -#endif - inline QBrush foreground() const { return qvariant_cast<QBrush>(data(Qt::ForegroundRole)); } inline void setForeground(const QBrush &brush) @@ -282,12 +264,6 @@ public: void setCellWidget(int row, int column, QWidget *widget); inline void removeCellWidget(int row, int column); -#if QT_DEPRECATED_SINCE(5, 13) - QT_DEPRECATED_X ("Use QTableWidgetItem::isSelected() instead") - bool isItemSelected(const QTableWidgetItem *item) const; - QT_DEPRECATED_X ("Use QTableWidgetItem::setSelected() instead") - void setItemSelected(const QTableWidgetItem *item, bool select); -#endif void setRangeSelected(const QTableWidgetSelectionRange &range, bool select); QList<QTableWidgetSelectionRange> selectedRanges() const; |