forked from qt-creator/qt-creator
ClangTools: Adjust test files
Qt6 handles multimedia and multimediawidgets as add-on modules, so they get installed only if explicitly checked while installing. Make them optional for testing Qt6 as well. Change-Id: I33b0686a61bf20ace790aa0c2bc27a5219d30aac Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
#include <QtCore>
|
||||
#include <QtGui>
|
||||
#ifdef QT_MULTIMEDIA_LIB
|
||||
#include <QtMultimedia>
|
||||
#endif
|
||||
#ifdef QT_MULTIMEDIAWIDGETS_LIB
|
||||
#include <QtMultimediaWidgets>
|
||||
#endif
|
||||
#include <QtNetwork>
|
||||
#include <QtQml>
|
||||
#include <QtQuick>
|
||||
|
@@ -1,12 +1,18 @@
|
||||
QT += multimedia \
|
||||
multimediawidgets \
|
||||
network \
|
||||
QT += network \
|
||||
qml \
|
||||
quick \
|
||||
sql \
|
||||
testlib \
|
||||
widgets
|
||||
|
||||
qtHaveModule(multimedia) {
|
||||
QT += multimedia
|
||||
}
|
||||
|
||||
qtHaveModule(multimediawidgets) {
|
||||
QT += multimediawidgets
|
||||
}
|
||||
|
||||
TARGET = qt-essential-includes
|
||||
TEMPLATE = app
|
||||
SOURCES += main.cpp
|
||||
|
@@ -6,8 +6,6 @@ QtApplication {
|
||||
Depends {
|
||||
name: "Qt"
|
||||
submodules: [
|
||||
"multimedia",
|
||||
"multimediawidgets",
|
||||
"network",
|
||||
"qml",
|
||||
"quick",
|
||||
@@ -17,6 +15,9 @@ QtApplication {
|
||||
]
|
||||
}
|
||||
|
||||
Depends { name: "Qt.multimedia"; required: false }
|
||||
Depends { name: "Qt.multimediawidgets"; required: false }
|
||||
|
||||
files : [
|
||||
"main.cpp",
|
||||
]
|
||||
|
Reference in New Issue
Block a user