Qt4 + Linux build fix
This commit is contained in:
parent
7c01afdca6
commit
2a2fff3557
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue