Fix the non-x11 build.
This commit is contained in:
parent
5fb13bf6a3
commit
4a2ed6f47e
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user