diff --git a/demos/demos.pro b/demos/demos.pro index e43ff97..9893790 100644 --- a/demos/demos.pro +++ b/demos/demos.pro @@ -7,17 +7,20 @@ TEMPLATE = subdirs SUBDIRS += piechartcustomization \ dynamicspline \ nesteddonuts \ - qmlchart \ + chartinteractions \ + callout \ + chartthemes + +!contains(QT_VERSION, ^5\\..*\\..*$)|qtHaveModule(declarative) { + SUBDIRS += qmlchart \ qmlweather \ qmlf1legends \ qmlcustomizations \ - chartinteractions \ qmlaxes \ qmlcustomlegend \ - callout \ qmlpolarchart \ - qmloscilloscope \ - chartthemes + qmloscilloscope +} contains(QT_CONFIG, multimedia) { SUBDIRS += audio diff --git a/examples/examples.pro b/examples/examples.pro index f6a63bb..9985e63 100644 --- a/examples/examples.pro +++ b/examples/examples.pro @@ -22,8 +22,6 @@ SUBDIRS += \ boxplotchart \ legend \ barmodelmapper \ - qmlboxplot \ - qmlpiechart \ lineandbar \ horizontalbarchart \ horizontalstackedbarchart \ @@ -36,6 +34,11 @@ SUBDIRS += \ logvalueaxis \ polarchart +!contains(QT_VERSION, ^5\\..*\\..*$)|qtHaveModule(declarative) { + SUBDIRS += qmlboxplot \ + qmlpiechart +} + !linux-arm*: { SUBDIRS += \ datetimeaxis diff --git a/plugins/plugins.pro b/plugins/plugins.pro index 7d2c352..6d70b7e 100644 --- a/plugins/plugins.pro +++ b/plugins/plugins.pro @@ -7,8 +7,10 @@ TEMPLATE = subdirs contains(QT_VERSION, ^4\\.[0-7]\\.[0-3]\\s*$) | contains(QT_VERSION, ^4\\.[0-6]\\..*) { warning("QtCommercial.Charts QML API requires at least Qt 4.7.4. You are using $${QT_VERSION} so the QML API is disabled.") } else { - SUBDIRS += quick1 contains(QT_VERSION, ^5\\..*\\..*$) { qtHaveModule(quick): SUBDIRS += quick2 + qtHaveModule(declarative): SUBDIRS += quick1 + } else { + SUBDIRS += quick1 } } diff --git a/tests/auto/auto.pro b/tests/auto/auto.pro index 8ab3a5f..416b237 100644 --- a/tests/auto/auto.pro +++ b/tests/auto/auto.pro @@ -31,7 +31,7 @@ SUBDIRS += \ contains(QT_VERSION, ^4\\.[0-7]\\.[0-3]\\s*$) | contains(QT_VERSION, ^4\\.[0-6]\\..*) { warning("QtCommercial.Charts QML API requires at least Qt 4.7.4. You are using $${QT_VERSION} so the QML API is disabled.") } else { - SUBDIRS += qml + !contains(QT_VERSION, ^5\\..*\\..*$)|qtHaveModule(declarative): SUBDIRS += qml # Check if QtQuickTest is installed exists($$(QTDIR)/mkspecs/features/qmltestcase.prf){ diff --git a/tests/tests.pro b/tests/tests.pro index a0a9c1b..7968612 100644 --- a/tests/tests.pro +++ b/tests/tests.pro @@ -5,12 +5,15 @@ TEMPLATE = subdirs SUBDIRS += \ auto \ - qmlchartproperties \ - qmlchartaxis \ presenterchart \ polarcharttest \ boxplottester +!contains(QT_VERSION, ^5\\..*\\..*$)|qtHaveModule(declarative) { + SUBDIRS += qmlchartproperties \ + qmlchartaxis +} + contains(QT_CONFIG, opengl) { SUBDIRS += chartwidgettest \ wavechart \