From 4a2ed6f47e5b4474b6b40f344d1ff9eb2d1c88ba Mon Sep 17 00:00:00 2001 From: Till Adam Date: Mon, 24 Dec 2012 17:01:27 +0100 Subject: [PATCH] Fix the non-x11 build. --- private/dialogshadows.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/private/dialogshadows.cpp b/private/dialogshadows.cpp index eb4f5c947..481f7bdbd 100644 --- a/private/dialogshadows.cpp +++ b/private/dialogshadows.cpp @@ -161,10 +161,14 @@ void DialogShadows::Private::initPixmap(const QString &element) QPixmap DialogShadows::Private::initEmptyPixmap(const QSize &size) { +#ifdef Q_WS_X11 Pixmap emptyXPix = XCreatePixmap(QX11Info::display(), QX11Info::appRootWindow(), size.width(), size.height(), 32); QPixmap tempEmptyPix = QPixmap::fromX11Pixmap(emptyXPix, QPixmap::ExplicitlyShared); tempEmptyPix.fill(Qt::transparent); return tempEmptyPix; +#else + return QPixmap(); +#endif } void DialogShadows::Private::setupPixmaps()