diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/painting/shared/arthurwidgets.cpp | 7 | ||||
-rw-r--r-- | examples/painting/shared/shared.pro | 2 |
2 files changed, 1 insertions, 8 deletions
diff --git a/examples/painting/shared/arthurwidgets.cpp b/examples/painting/shared/arthurwidgets.cpp index 2b8d6ebcee..c1abc4bbe7 100644 --- a/examples/painting/shared/arthurwidgets.cpp +++ b/examples/painting/shared/arthurwidgets.cpp @@ -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 } diff --git a/examples/painting/shared/shared.pro b/examples/painting/shared/shared.pro index 18f1d72398..8fc58ae814 100644 --- a/examples/painting/shared/shared.pro +++ b/examples/painting/shared/shared.pro @@ -11,7 +11,7 @@ build_all:!build_pass { CONFIG += release } TARGET = demo_shared -QT += gui-private widgets +QT += widgets SOURCES += \ arthurstyle.cpp\ |