From c7ef17b231a3c4c42ef26894d3869d5abab27962 Mon Sep 17 00:00:00 2001 From: Christian Ehrlicher Date: Wed, 13 May 2020 21:07:22 +0200 Subject: Models: remove version check for clearItemData() The version checks for clearItemData() are no longer needed now. Change-Id: I5052188fb96cf637128662f3442d339820f0f41d Reviewed-by: David Faure --- src/sql/models/qsqltablemodel.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/sql/models/qsqltablemodel.cpp') 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). -- cgit v1.2.3