Changeset View
Changeset View
Standalone View
Standalone View
src/common/KReportPluginMetaData.cpp
Show All 22 Lines | |||||
23 | #include <QPluginLoader> | 23 | #include <QPluginLoader> | ||
24 | #include "kreport_debug.h" | 24 | #include "kreport_debug.h" | ||
25 | 25 | | |||
26 | class KReportPluginMetaData::Private | 26 | class KReportPluginMetaData::Private | ||
27 | { | 27 | { | ||
28 | public: | 28 | public: | ||
29 | Private(KReportPluginMetaData *metaData) : isBuiltIn(false), isStatic(false) | 29 | Private(KReportPluginMetaData *metaData) : isBuiltIn(false), isStatic(false) | ||
30 | { | 30 | { | ||
31 | const QString s = metaData->value(QLatin1String("X-KReport-Priority")); | 31 | const QString s = metaData->value(QLatin1String("X-KReport-PluginInfo-Priority")); | ||
32 | bool ok; | 32 | bool ok; | ||
33 | int i = s.toInt(&ok); | 33 | int i = s.toInt(&ok); | ||
34 | priority = ok ? i : 100; // default priority is low | 34 | priority = ok ? i : 100; // default priority is low | ||
35 | } | 35 | } | ||
36 | 36 | | |||
37 | int priority; | 37 | int priority; | ||
38 | bool isBuiltIn; | 38 | bool isBuiltIn; | ||
39 | bool isStatic; | 39 | bool isStatic; | ||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |