From 551e11c286b45d3e94b38f0e5df95f443c15f0bd Mon Sep 17 00:00:00 2001 From: Luca Beldi Date: Mon, 3 Sep 2018 10:13:53 +0100 Subject: Implement clearItemData in common models A virtual method clearItemData was added to QAIM for Qt6. This patch implements that method to all Qt concrete models for which it makes sense. Task-number: QTBUG-69616 Change-Id: If980fcfc36f723128bc56ec4587c5c3a338dbbcc Reviewed-by: David Faure --- src/widgets/itemviews/qlistwidget_p.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/widgets/itemviews/qlistwidget_p.h') diff --git a/src/widgets/itemviews/qlistwidget_p.h b/src/widgets/itemviews/qlistwidget_p.h index 9cb3d5966b..cf8c4c47ed 100644 --- a/src/widgets/itemviews/qlistwidget_p.h +++ b/src/widgets/itemviews/qlistwidget_p.h @@ -100,6 +100,9 @@ public: QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; bool setData(const QModelIndex &index, const QVariant &value, int role) override; +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) + bool clearItemData(const QModelIndex &index) override; +#endif QMap itemData(const QModelIndex &index) const override; -- cgit v1.2.3