Changeset View
Changeset View
Standalone View
Standalone View
src/core/loader.cpp
Show First 20 Lines • Show All 265 Lines • ▼ Show 20 Line(s) | |||||
266 | Settings *Loader::settings() const | 266 | Settings *Loader::settings() const | ||
267 | { | 267 | { | ||
268 | return d->settings; | 268 | return d->settings; | ||
269 | } | 269 | } | ||
270 | 270 | | |||
271 | void Loader::loadPlugins() | 271 | void Loader::loadPlugins() | ||
272 | { | 272 | { | ||
273 | #ifndef SONNET_STATIC | 273 | #ifndef SONNET_STATIC | ||
274 | const QStringList libPaths = QCoreApplication::libraryPaths() << QStringLiteral( | 274 | const QStringList libPaths = QCoreApplication::libraryPaths(); | ||
275 | INSTALLATION_PLUGIN_PATH); | | |||
276 | const QLatin1String pathSuffix("/kf5/sonnet/"); | 275 | const QLatin1String pathSuffix("/kf5/sonnet/"); | ||
277 | int plugins = 0; | 276 | int plugins = 0; | ||
278 | Q_FOREACH (const QString &libPath, libPaths) { | 277 | Q_FOREACH (const QString &libPath, libPaths) { | ||
279 | QDir dir(libPath + pathSuffix); | 278 | QDir dir(libPath + pathSuffix); | ||
280 | if (!dir.exists()) { | 279 | if (!dir.exists()) { | ||
281 | continue; | 280 | continue; | ||
282 | } | 281 | } | ||
283 | Q_FOREACH (const QString &fileName, dir.entryList(QDir::Files)) { | 282 | Q_FOREACH (const QString &fileName, dir.entryList(QDir::Files)) { | ||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |