diff options
| author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2025-06-12 16:17:19 +0200 |
|---|---|---|
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2025-06-12 20:22:38 +0200 |
| commit | 45202b26ce9d3b4fa68fe49f392941270a0ca41c (patch) | |
| tree | efadbd2ac8508d100dc9fa23705b0248bc88ea8b /src | |
| parent | 668d81f73a5c2f4ec14764d1892f2eaf6494c0f1 (diff) | |
Fix -no-feature-draganddrop builds
Amends 7d0017cda8fde28a1130feaeecf41010b40e3cb3 which added the APIs,
and ef7e5ea616a3f04ff0ba5f6fe34487a332152b01 which only added the guard
for QListWidget.
Address header review comment.
Pick-to: 6.10
Task-number: QTBUG-137478
Change-Id: I405190190f4d64dd810d7d35e9ef616ab0147b19
Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/widgets/itemviews/qtablewidget.h | 2 | ||||
| -rw-r--r-- | src/widgets/itemviews/qtreewidget.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/widgets/itemviews/qtablewidget.h b/src/widgets/itemviews/qtablewidget.h index 833d79c19f1..ba14a4ff32d 100644 --- a/src/widgets/itemviews/qtablewidget.h +++ b/src/widgets/itemviews/qtablewidget.h @@ -265,8 +265,10 @@ public: const QTableWidgetItem *itemPrototype() const; void setItemPrototype(const QTableWidgetItem *item); +#if QT_CONFIG(draganddrop) Qt::DropActions supportedDragActions() const; void setSupportedDragActions(Qt::DropActions actions); +#endif public Q_SLOTS: void scrollToItem(const QTableWidgetItem *item, QAbstractItemView::ScrollHint hint = EnsureVisible); diff --git a/src/widgets/itemviews/qtreewidget.h b/src/widgets/itemviews/qtreewidget.h index 19154e1e290..fbb13b3e962 100644 --- a/src/widgets/itemviews/qtreewidget.h +++ b/src/widgets/itemviews/qtreewidget.h @@ -288,8 +288,10 @@ public: void setSelectionModel(QItemSelectionModel *selectionModel) override; +#if QT_CONFIG(draganddrop) Qt::DropActions supportedDragActions() const; void setSupportedDragActions(Qt::DropActions actions); +#endif public Q_SLOTS: void scrollToItem(const QTreeWidgetItem *item, |
