Changeset View
Changeset View
Standalone View
Standalone View
src/plasma/private/storage.cpp
Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Line(s) | 125 | while ((parentObject = parentObject->parent())) { | |||
---|---|---|---|---|---|
126 | Plasma::Applet *applet = qobject_cast<Plasma::Applet *>(parentObject); | 126 | Plasma::Applet *applet = qobject_cast<Plasma::Applet *>(parentObject); | ||
127 | if (applet) { | 127 | if (applet) { | ||
128 | m_clientName = applet->pluginMetaData().pluginId(); | 128 | m_clientName = applet->pluginMetaData().pluginId(); | ||
129 | break; | 129 | break; | ||
130 | } | 130 | } | ||
131 | 131 | | |||
132 | Plasma::DataEngine *engine = qobject_cast<Plasma::DataEngine *>(parentObject); | 132 | Plasma::DataEngine *engine = qobject_cast<Plasma::DataEngine *>(parentObject); | ||
133 | if (engine) { | 133 | if (engine) { | ||
134 | m_clientName = engine->pluginInfo().pluginName(); | 134 | m_clientName = engine->metadata().pluginId(); | ||
135 | break; | 135 | break; | ||
136 | } | 136 | } | ||
137 | } | 137 | } | ||
138 | 138 | | |||
139 | m_clientName.replace(QLatin1Char('.'), QLatin1Char('_')); | 139 | m_clientName.replace(QLatin1Char('.'), QLatin1Char('_')); | ||
140 | m_clientName.replace(QLatin1Char('-'), QLatin1Char('_')); | 140 | m_clientName.replace(QLatin1Char('-'), QLatin1Char('_')); | ||
141 | 141 | | |||
142 | setName(QStringLiteral("storage")); | 142 | setName(QStringLiteral("storage")); | ||
143 | } | 143 | } | ||
144 | 144 | | |||
145 | Storage::~Storage() | 145 | Storage::~Storage() | ||
146 | { | 146 | { | ||
147 | } | 147 | } | ||
148 | 148 | | |||
149 | #include "moc_storage_p.cpp" | 149 | #include "moc_storage_p.cpp" |