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 | #ifdef SAILFISHOS | ||||
33 | #define qAsConst | ||||
34 | #endif | ||||
albertvaka: Can we target latest Sailfish, so we don't need to keep compatibility with Qt 5.6? | |||||
piggz: latest sailfish _is_ 5.6! ;) | |||||
35 | | ||||
31 | PluginLoader* PluginLoader::instance() | 36 | PluginLoader* PluginLoader::instance() | ||
32 | { | 37 | { | ||
33 | static PluginLoader* instance = new PluginLoader(); | 38 | static PluginLoader* instance = new PluginLoader(); | ||
34 | return instance; | 39 | return instance; | ||
35 | } | 40 | } | ||
36 | 41 | | |||
37 | PluginLoader::PluginLoader() | 42 | PluginLoader::PluginLoader() | ||
38 | { | 43 | { | ||
▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines |
Can we target latest Sailfish, so we don't need to keep compatibility with Qt 5.6?