diff --git a/OptionsDialog.cpp b/OptionsDialog.cpp index fbcc168..7b270f4 100755 --- a/OptionsDialog.cpp +++ b/OptionsDialog.cpp @@ -200,7 +200,7 @@ void OptionsDialog::applySettings() settings->setValue("Language", ui->cbLanguage->itemData(ui->cbLanguage->currentIndex())); #endif #ifdef GTA5SYNC_WIN -#if QT_VERSION >= 0x050000 +#if QT_VERSION >= 0x050200 settings->setValue("NavigationBar", ui->cbSnapmaticNavigationBar->isChecked()); #endif #endif @@ -412,7 +412,7 @@ void OptionsDialog::setupCustomGTAFolder() void OptionsDialog::setupSnapmaticPictureViewer() { #ifdef GTA5SYNC_WIN -#if QT_VERSION >= 0x050000 +#if QT_VERSION >= 0x050200 settings->beginGroup("Interface"); ui->cbSnapmaticNavigationBar->setChecked(settings->value("NavigationBar", false).toBool()); settings->endGroup(); diff --git a/PictureDialog.cpp b/PictureDialog.cpp index b25bbbe..d3a950b 100755 --- a/PictureDialog.cpp +++ b/PictureDialog.cpp @@ -28,9 +28,9 @@ #include "UiModLabel.h" #ifdef GTA5SYNC_WIN -#if QT_VERSION >= 0x050000 +#if QT_VERSION >= 0x050200 #include -#include +#include #endif #endif @@ -102,7 +102,7 @@ void PictureDialog::addPreviousNextButtons() { // Windows Vista additions #ifdef GTA5SYNC_WIN -#if QT_VERSION >= 0x050000 +#if QT_VERSION >= 0x050200 QPalette palette; QToolBar *uiToolbar = new QToolBar("Picture Toolbar", this); layout()->setMenuBar(uiToolbar); @@ -117,7 +117,7 @@ void PictureDialog::addPreviousNextButtons() void PictureDialog::stylizeDialog() { #ifdef GTA5SYNC_WIN -#if QT_VERSION >= 0x050000 +#if QT_VERSION >= 0x050200 if (QtWin::isCompositionEnabled()) { QtWin::extendFrameIntoClientArea(this, 0, this->layout()->menuBar()->height(), 0, 0); @@ -138,7 +138,7 @@ void PictureDialog::stylizeDialog() bool PictureDialog::event(QEvent *event) { #ifdef GTA5SYNC_WIN -#if QT_VERSION >= 0x050000 +#if QT_VERSION >= 0x050200 if (navienabled) { if (event->type() == QWinEvent::CompositionChange || event->type() == QWinEvent::ColorizationChange)