Use correct qt sparkle include for Qt 6

This commit is contained in:
Jonas Kvinge 2020-08-01 03:41:48 +02:00
parent af0d092054
commit 214b6f4358
2 changed files with 12 additions and 4 deletions

View File

@ -184,8 +184,12 @@
#endif
#ifdef HAVE_QTSPARKLE
# include <qtsparkle-qt5/Updater>
#endif
# if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
# include <qtsparkle-qt6/Updater>
# else
# include <qtsparkle-qt5/Updater>
# endif
#endif // HAVE_QTSPARKLE
const char *MainWindow::kSettingsGroup = "MainWindow";
const char *MainWindow::kAllFilesFilterSpec = QT_TR_NOOP("All Files (*)");

View File

@ -78,8 +78,12 @@
#include <singlecoreapplication.h>
#ifdef HAVE_QTSPARKLE
# include <qtsparkle-qt5/Updater>
#endif
# if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
# include <qtsparkle-qt6/Updater>
# else
# include <qtsparkle-qt5/Updater>
# endif
#endif // HAVE_QTSPARKLE
#ifdef HAVE_DBUS
# include "core/mpris.h"