Commit a71e8465 authored by Laurent Montel's avatar Laurent Montel
Browse files

Fix some qt6 compile error

parent e08e72bf
Pipeline #129865 passed with stage
in 1 minute and 37 seconds
......@@ -9,9 +9,8 @@
#include "discovercommon_export.h"
#include <QList>
#include <QStringList>
class QCommandLineParser;
class QStringList;
class AbstractResourcesBackend;
class DISCOVERCOMMON_EXPORT DiscoverBackendsFactory
......
......@@ -122,13 +122,13 @@ static QVector<T> kSetToVector(const QSet<T> &set)
ret.append(x);
return ret;
}
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
template<typename T>
static QSet<T> kToSet(const QVector<T> &set)
{
return QSet<T>(set.begin(), set.end());
}
#endif
template<typename T>
static QSet<T> kToSet(const QList<T> &set)
{
......
......@@ -26,8 +26,9 @@ int main(int argc, char **argv)
{
QApplication app(argc, argv);
app.setOrganizationDomain(QStringLiteral("kde.org"));
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
#endif
KCrash::setFlags(KCrash::AutoRestart);
NotifierItem notifier;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment