Make autotests compile without draganddrop feature
Disable tst_qdrag test itself, and put proper feature guards in tst_event test. Fixes: QTBUG-135806 Pick-to: 6.9 6.8 Change-Id: I80e41538488ba1df230551a97f18c8266c01bdb5 Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
This commit is contained in:
parent
8b5232f4c8
commit
cb48788425
@ -7,7 +7,9 @@ if(QT_FEATURE_action)
|
||||
endif()
|
||||
add_subdirectory(qbackingstore)
|
||||
add_subdirectory(qcursor)
|
||||
if(QT_FEATURE_draganddrop)
|
||||
add_subdirectory(qdrag)
|
||||
endif()
|
||||
add_subdirectory(qevent)
|
||||
add_subdirectory(qfileopenevent)
|
||||
add_subdirectory(qguichronotimer)
|
||||
|
@ -53,6 +53,18 @@
|
||||
#define X_QShortcutEvent(X)
|
||||
#endif
|
||||
|
||||
#if QT_CONFIG(draganddrop)
|
||||
#define X_QDropEvent(X) X(QDropEvent, ({}, {}, {}, {}, {}))
|
||||
#define X_QDragMoveEvent(X) X(QDragMoveEvent, ({}, {}, {}, {}, {}))
|
||||
#define X_QDragEnterEvent(X) X(QDragEnterEvent, ({}, {}, {}, {}, {}))
|
||||
#define X_QDragLeaveEvent(X) X(QDragLeaveEvent, ())
|
||||
#else
|
||||
#define X_QDropEvent(X)
|
||||
#define X_QDragMoveEvent(X)
|
||||
#define X_QDragEnterEvent(X)
|
||||
#define X_QDragLeaveEvent(X)
|
||||
#endif
|
||||
|
||||
#define FOR_EACH_CORE_EVENT(X) \
|
||||
/* qcoreevent.h */ \
|
||||
X(QEvent, (QEvent::None)) \
|
||||
@ -89,10 +101,10 @@
|
||||
X(QContextMenuEvent, (QContextMenuEvent::Reason::Keyboard, {}, {})) \
|
||||
X(QInputMethodEvent, ()) \
|
||||
X(QInputMethodQueryEvent, ({})) \
|
||||
X(QDropEvent, ({}, {}, {}, {}, {})) \
|
||||
X(QDragMoveEvent, ({}, {}, {}, {}, {})) \
|
||||
X(QDragEnterEvent, ({}, {}, {}, {}, {})) \
|
||||
X(QDragLeaveEvent, ()) \
|
||||
X_QDropEvent(X) \
|
||||
X_QDragMoveEvent(X) \
|
||||
X_QDragEnterEvent(X) \
|
||||
X_QDragLeaveEvent(X) \
|
||||
X(QHelpEvent, ({}, {}, {})) \
|
||||
X(QStatusTipEvent, ({})) \
|
||||
X_QWhatsThisClickedEvent(X) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user