Qt4 + Linux build fix

This commit is contained in:
Rafael 2016-11-02 07:33:47 +01:00
parent 7c01afdca6
commit 2a2fff3557

View file

@ -116,6 +116,8 @@ void PictureDialog::addPreviousNextButtons()
void PictureDialog::stylizeDialog() void PictureDialog::stylizeDialog()
{ {
#ifdef GTA5SYNC_WIN
#if QT_VERSION >= 0x050000
if (QtWin::isCompositionEnabled()) if (QtWin::isCompositionEnabled())
{ {
QtWin::extendFrameIntoClientArea(this, 0, this->layout()->menuBar()->height(), 0, 0); QtWin::extendFrameIntoClientArea(this, 0, this->layout()->menuBar()->height(), 0, 0);
@ -129,6 +131,8 @@ void PictureDialog::stylizeDialog()
setAttribute(Qt::WA_TranslucentBackground, false); setAttribute(Qt::WA_TranslucentBackground, false);
setStyleSheet(QString("PictureDialog { background: %1; }").arg(QtWin::realColorizationColor().name())); setStyleSheet(QString("PictureDialog { background: %1; }").arg(QtWin::realColorizationColor().name()));
} }
#endif
#endif
} }
bool PictureDialog::event(QEvent *event) bool PictureDialog::event(QEvent *event)