summaryrefslogtreecommitdiffstats
path: root/src/widgets/itemviews/qtreewidget.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-05-07 09:30:16 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-05-11 11:05:15 +0200
commit90210c8d28a90295ebbf37ef45b69924ed7f42d0 (patch)
treea67feb9140d069197bbcaf53fe28d71e4be255cd /src/widgets/itemviews/qtreewidget.cpp
parent219e7bafa278792f7bde110d24333fb60b555c12 (diff)
Remove dead code from src/widgets
Code that's removed via QT_VERSION(6, 0, 0) check is already no longer compiled. Change-Id: I70865f330a6260ac2e9cf2770d599a5b6f7bb7d4 Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'src/widgets/itemviews/qtreewidget.cpp')
-rw-r--r--src/widgets/itemviews/qtreewidget.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/widgets/itemviews/qtreewidget.cpp b/src/widgets/itemviews/qtreewidget.cpp
index 25b3f3a778..244f1872c2 100644
--- a/src/widgets/itemviews/qtreewidget.cpp
+++ b/src/widgets/itemviews/qtreewidget.cpp
@@ -392,7 +392,6 @@ bool QTreeModel::setData(const QModelIndex &index, const QVariant &value, int ro
return false;
}
-#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
bool QTreeModel::clearItemData(const QModelIndex &index)
{
if (!checkIndex(index, CheckIndexOption::IndexIsValid))
@@ -411,7 +410,6 @@ bool QTreeModel::clearItemData(const QModelIndex &index)
emit dataChanged(index, index, QVector<int>{});
return true;
}
-#endif
QMap<int, QVariant> QTreeModel::itemData(const QModelIndex &index) const
{
@@ -3257,11 +3255,7 @@ QStringList QTreeWidget::mimeTypes() const
If the list of items is empty, \nullptr is returned rather than a
serialized empty list.
*/
-#if QT_VERSION >= QT_VERSION_CHECK(6,0,0)
QMimeData *QTreeWidget::mimeData(const QList<QTreeWidgetItem *> &items) const
-#else
-QMimeData *QTreeWidget::mimeData(const QList<QTreeWidgetItem*> items) const
-#endif
{
Q_D(const QTreeWidget);
if (d->treeModel()->cachedIndexes.isEmpty()) {
@@ -3339,17 +3333,6 @@ QModelIndex QTreeWidget::indexFromItem(const QTreeWidgetItem *item, int column)
return d->index(item, column);
}
-#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
-/*!
- \overload
- \internal
-*/
-QModelIndex QTreeWidget::indexFromItem(QTreeWidgetItem *item, int column) const
-{
- return indexFromItem(const_cast<const QTreeWidgetItem *>(item), column);
-}
-#endif
-
/*!
Returns a pointer to the QTreeWidgetItem associated with the given \a index.