Build fix for examples.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Mon, 25 Jul 2011 08:07:13 +0000 (10:07 +0200)
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>
Mon, 25 Jul 2011 08:36:19 +0000 (10:36 +0200)
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Change-Id: I36f5a4088a39673a8e74a4d53ac83a42696af096
Reviewed-on: http://codereview.qt.nokia.com/2095
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
examples/painting/shared/arthurwidgets.cpp
examples/painting/shared/shared.pro

index 2b8d6eb..c1abc4b 100644 (file)
@@ -51,8 +51,6 @@
 #include <QTextBrowser>
 #include <QBoxLayout>
 
-#include <private/qpixmapdata_p.h>
-
 extern QPixmap cached(const QString &img);
 
 ArthurFrame::ArthurFrame(QWidget *parent)
@@ -83,11 +81,6 @@ ArthurFrame::ArthurFrame(QWidget *parent)
 //     QPalette pal = palette();
 //     pal.setBrush(backgroundRole(), m_tile);
 //     setPalette(pal);
-
-#ifdef Q_WS_X11
-    QPixmap xRenderPixmap(1, 1);
-    m_prefer_image = xRenderPixmap.handle()->classId() == QPlatformPixmap::X11Class && !xRenderPixmap.x11PictureHandle();
-#endif
 }
 
 
index 18f1d72..8fc58ae 100644 (file)
@@ -11,7 +11,7 @@ build_all:!build_pass {
     CONFIG += release
 }
 TARGET = demo_shared
-QT += gui-private widgets
+QT += widgets
 
 SOURCES += \
        arthurstyle.cpp\