ad36da8ff4
... by moving them in QTestPrivate namespace (qtesthelpers_p.h). This header file is a convenient staging area for helper APIs, eventually some could be moved to public QTest API. This header file utilizes the same pattern as other qtestlib header files - wrapping functions with QT_${LIBNAME}_LIB to automatically enable certain APIs based on what is in the projects dependencies, e.g. QT += widgets. Change-Id: Ic0266429939c1f3788912ad8b84fc6e0d5edd68b Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
20 lines
446 B
Prolog
20 lines
446 B
Prolog
CONFIG += testcase
|
|
testcase.timeout = 600 # this test is slow
|
|
TARGET = tst_qwidget
|
|
|
|
QT += widgets core-private gui-private widgets-private testlib testlib-private
|
|
|
|
SOURCES += tst_qwidget.cpp
|
|
RESOURCES = qwidget.qrc
|
|
|
|
aix-g++*:QMAKE_CXXFLAGS+=-fpermissive
|
|
|
|
CONFIG += x11inc
|
|
|
|
mac {
|
|
LIBS += -framework Security -framework AppKit -framework Carbon
|
|
OBJECTIVE_SOURCES += tst_qwidget_mac_helpers.mm
|
|
}
|
|
|
|
win32:!winrt: LIBS += -luser32 -lgdi32
|