Changeset View
Changeset View
Standalone View
Standalone View
core/pluginloader.cpp
Show All 22 Lines | |||||
23 | #include <KPluginMetaData> | 23 | #include <KPluginMetaData> | ||
24 | #include <KPluginLoader> | 24 | #include <KPluginLoader> | ||
25 | #include <KPluginFactory> | 25 | #include <KPluginFactory> | ||
26 | 26 | | |||
27 | #include "core_debug.h" | 27 | #include "core_debug.h" | ||
28 | #include "device.h" | 28 | #include "device.h" | ||
29 | #include "kdeconnectplugin.h" | 29 | #include "kdeconnectplugin.h" | ||
30 | 30 | | |||
31 | //In older Qt released, qAsConst isnt available | ||||
32 | #include "qtcompat_p.h" | ||||
33 | | ||||
31 | PluginLoader* PluginLoader::instance() | 34 | PluginLoader* PluginLoader::instance() | ||
albertvaka: Can we target latest Sailfish, so we don't need to keep compatibility with Qt 5.6? | |||||
piggz: latest sailfish _is_ 5.6! ;) | |||||
32 | { | 35 | { | ||
33 | static PluginLoader* instance = new PluginLoader(); | 36 | static PluginLoader* instance = new PluginLoader(); | ||
34 | return instance; | 37 | return instance; | ||
35 | } | 38 | } | ||
36 | 39 | | |||
37 | PluginLoader::PluginLoader() | 40 | PluginLoader::PluginLoader() | ||
38 | { | 41 | { | ||
39 | const QVector<KPluginMetaData> data = KPluginLoader::findPlugins(QStringLiteral("kdeconnect/")); | 42 | const QVector<KPluginMetaData> data = KPluginLoader::findPlugins(QStringLiteral("kdeconnect/")); | ||
▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines |
Can we target latest Sailfish, so we don't need to keep compatibility with Qt 5.6?