summaryrefslogtreecommitdiffstats
path: root/src/gui/itemmodels
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-04-17 17:19:24 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-04-27 12:21:29 +0200
commitdccf28b7c344822b7459635099ebe3abdf5fd107 (patch)
tree3acab7b16c02f87ace113cc2f0cc8d9598e219e4 /src/gui/itemmodels
parent4ba25a092065a6422510a9f4afa4fbbabeda686c (diff)
Remove deprecated members from several QtGui classes
Those can be trivially removed as they have direct replacements, or are completely unused. The migration path for QCursor::bitmap and QCursor::mask is QBitmap *pb = c.bitmap(); // up to 5.15, warns in 5.15 QBitmap vb = c.bitmap(Qt::ReturnByValue); // from 5.15, works in 6 QBitmap b = c.bitmap(); // from 6.0 on Change-Id: I3b3acd1c7f09c4c8414e98b3ce11986f1ecd5eda Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/gui/itemmodels')
-rw-r--r--src/gui/itemmodels/qstandarditemmodel.cpp25
-rw-r--r--src/gui/itemmodels/qstandarditemmodel.h5
2 files changed, 0 insertions, 30 deletions
diff --git a/src/gui/itemmodels/qstandarditemmodel.cpp b/src/gui/itemmodels/qstandarditemmodel.cpp
index d0325a7f9e..bc76d0ea60 100644
--- a/src/gui/itemmodels/qstandarditemmodel.cpp
+++ b/src/gui/itemmodels/qstandarditemmodel.cpp
@@ -1371,24 +1371,6 @@ void QStandardItem::setCheckable(bool checkable)
*/
/*!
- \fn void QStandardItem::setTristate(bool tristate)
- \obsolete
-
- Use QStandardItem::setAutoTristate(bool tristate) instead.
- For a tristate checkbox that the user can change between all three
- states, use QStandardItem::setUserTristate(bool tristate) instead.
-*/
-
-/*!
- \fn void QStandardItem::isTristate() const
- \obsolete
-
- Use QStandardItem::isAutoTristate() instead.
- For a tristate checkbox that the user can change between all three
- states, use QStandardItem::isUserTristate() instead.
-*/
-
-/*!
Determines that the item is tristate and controlled by QTreeWidget if \a tristate
is \c true.
This enables automatic management of the state of parent items in QTreeWidget
@@ -1442,13 +1424,6 @@ void QStandardItem::setUserTristate(bool tristate)
\sa setUserTristate(), isCheckable(), checkState()
*/
-#if QT_DEPRECATED_SINCE(5, 6)
-void QStandardItem::setTristate(bool tristate)
-{
- setAutoTristate(tristate);
-}
-#endif
-
#if QT_CONFIG(draganddrop)
/*!
diff --git a/src/gui/itemmodels/qstandarditemmodel.h b/src/gui/itemmodels/qstandarditemmodel.h
index a66054a04f..405f72d519 100644
--- a/src/gui/itemmodels/qstandarditemmodel.h
+++ b/src/gui/itemmodels/qstandarditemmodel.h
@@ -171,11 +171,6 @@ public:
}
void setUserTristate(bool tristate);
-#if QT_DEPRECATED_SINCE(5, 6)
- QT_DEPRECATED bool isTristate() const { return isAutoTristate(); }
- QT_DEPRECATED void setTristate(bool tristate);
-#endif
-
#if QT_CONFIG(draganddrop)
inline bool isDragEnabled() const {
return (flags() & Qt::ItemIsDragEnabled) != 0;