summaryrefslogtreecommitdiffstats
path: root/src/corelib/itemmodels/qitemselectionmodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/itemmodels/qitemselectionmodel.h')
-rw-r--r--src/corelib/itemmodels/qitemselectionmodel.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/corelib/itemmodels/qitemselectionmodel.h b/src/corelib/itemmodels/qitemselectionmodel.h
index b332158c27..529dc6f100 100644
--- a/src/corelib/itemmodels/qitemselectionmodel.h
+++ b/src/corelib/itemmodels/qitemselectionmodel.h
@@ -55,18 +55,7 @@ class Q_CORE_EXPORT QItemSelectionRange
{
public:
- inline QItemSelectionRange() : tl(), br() {}
-#if QT_VERSION < QT_VERSION_CHECK(6,0,0)
- // ### Qt 6: remove them all, the compiler-generated ones are fine
- inline QItemSelectionRange(const QItemSelectionRange &other)
- : tl(other.tl), br(other.br) {}
- QItemSelectionRange(QItemSelectionRange &&other) noexcept
- : tl(std::move(other.tl)), br(std::move(other.br)) {}
- QItemSelectionRange &operator=(QItemSelectionRange &&other) noexcept
- { tl = std::move(other.tl); br = std::move(other.br); return *this; }
- QItemSelectionRange &operator=(const QItemSelectionRange &other)
- { tl = other.tl; br = other.br; return *this; }
-#endif // Qt < 6
+ QItemSelectionRange() = default;
QItemSelectionRange(const QModelIndex &topL, const QModelIndex &bottomR) : tl(topL), br(bottomR) {}
explicit QItemSelectionRange(const QModelIndex &index) : tl(index), br(tl) {}
@@ -103,10 +92,6 @@ public:
}
bool intersects(const QItemSelectionRange &other) const;
-#if QT_DEPRECATED_SINCE(5, 0)
- inline QItemSelectionRange intersect(const QItemSelectionRange &other) const
- { return intersected(other); }
-#endif
QItemSelectionRange intersected(const QItemSelectionRange &other) const;