Fix the non-x11 build.

This commit is contained in:
Till Adam 2012-12-24 17:01:27 +01:00
parent 5fb13bf6a3
commit 4a2ed6f47e

View File

@ -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()