diff options
author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2020-05-13 21:07:22 +0200 |
---|---|---|
committer | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2020-05-23 10:53:26 +0200 |
commit | c7ef17b231a3c4c42ef26894d3869d5abab27962 (patch) | |
tree | ea10f021a93def136cbf45eee9eb8816ee97f97b /src/sql/models | |
parent | ee3994384a5ce6f2bb6929e305ed8db498ee1578 (diff) |
Models: remove version check for clearItemData()
The version checks for clearItemData() are no longer needed now.
Change-Id: I5052188fb96cf637128662f3442d339820f0f41d
Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'src/sql/models')
-rw-r--r-- | src/sql/models/qsqltablemodel.cpp | 2 | ||||
-rw-r--r-- | src/sql/models/qsqltablemodel.h | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/src/sql/models/qsqltablemodel.cpp b/src/sql/models/qsqltablemodel.cpp index 12ea0f5666..30a27bada8 100644 --- a/src/sql/models/qsqltablemodel.cpp +++ b/src/sql/models/qsqltablemodel.cpp @@ -607,7 +607,6 @@ bool QSqlTableModel::setData(const QModelIndex &index, const QVariant &value, in return true; } -#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) /*! \reimp */ @@ -615,7 +614,6 @@ bool QSqlTableModel::clearItemData(const QModelIndex &index) { return setData(index, QVariant(), Qt::EditRole); } -#endif /*! This function simply calls QSqlQueryModel::setQuery(\a query). diff --git a/src/sql/models/qsqltablemodel.h b/src/sql/models/qsqltablemodel.h index 1ac8bd9b04..97692c573e 100644 --- a/src/sql/models/qsqltablemodel.h +++ b/src/sql/models/qsqltablemodel.h @@ -74,9 +74,7 @@ public: QSqlRecord record(int row) const; QVariant data(const QModelIndex &idx, int role = Qt::DisplayRole) const override; bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) override; -#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) bool clearItemData(const QModelIndex &index) override; -#endif QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override; |