Fix building of the Arthur plugin.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Wed, 4 Apr 2012 12:08:45 +0000 (14:08 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 4 Apr 2012 12:10:23 +0000 (14:10 +0200)
Do not build by default as it requires a library located in the
qtbase painting examples.

Change-Id: I19ac8ad31f9b2e194f88c5c3b168a2352dd72f1e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
examples/designer/arthurplugin/arthurplugin.pro
examples/designer/arthurplugin/plugin.cpp

index 34928ef..2e9fd54 100644 (file)
@@ -9,19 +9,21 @@ contains(QT_CONFIG, opengl) {
     QT += opengl
 }
 
-SHARED_FOLDER = QT_CORE_SOURCES/examples/painting/shared
-include(QT_CORE_SOURCES/examples/painting/shared/shared.pri)
+QT_BASE_EXAMPLES = $$QT.core.sources/../../examples
 
-EXAMPLE_AFFINE_DIR = QT_CORE_SOURCES/examples/painting/affine
-EXAMPLE_COMPOSITION_DIR = QT_CORE_SOURCES/examples/painting/composition
-EXAMPLE_DEFORM_DIR = QT_CORE_SOURCES/examples/painting/deform
-EXAMPLE_GRADIENT_DIR = QT_CORE_SOURCES/examples/painting/gradients
-EXAMPLE_STROKE_DIR = QT_CORE_SOURCES/examples/painting/pathstroke
+SHARED_FOLDER = $$QT_BASE_EXAMPLES/painting/shared
+include($$QT_BASE_EXAMPLES/painting/shared/shared.pri)
+
+EXAMPLE_AFFINE_DIR = $$QT_BASE_EXAMPLES/painting/affine
+EXAMPLE_COMPOSITION_DIR = $$QT_BASE_EXAMPLES/painting/composition
+EXAMPLE_DEFORM_DIR = $$QT_BASE_EXAMPLES/painting/deform
+EXAMPLE_GRADIENT_DIR = $$QT_BASE_EXAMPLES/painting/gradients
+EXAMPLE_STROKE_DIR = $$QT_BASE_EXAMPLES/painting/pathstroke
 
 INCLUDEPATH += $$EXAMPLE_AFFINE_DIR $$EXAMPLE_COMPOSITION_DIR $$EXAMPLE_DEFORM_DIR $$EXAMPLE_GRADIENT_DIR $$EXAMPLE_STROKE_DIR
 
 SOURCES = plugin.cpp \
-    $EXAMPLE_AFFINE_DIR/xform.cpp \
+    $$EXAMPLE_AFFINE_DIR/xform.cpp \
     $$EXAMPLE_COMPOSITION_DIR/composition.cpp \
     $$EXAMPLE_DEFORM_DIR/pathdeform.cpp \
     $$EXAMPLE_GRADIENT_DIR/gradients.cpp \
index c278985..6dfa41f 100644 (file)
@@ -44,7 +44,7 @@
 
 #include <QtCore/qplugin.h>
 #include <QtWidgets/QIcon>
-#include <QtWidgets/QPixmap>
+#include <QtGui/QPixmap>
 
 #include "xform.h"
 #include "pathdeform.h"