Adapt to changes in KDEInstallDirs

Plugins of non kf5 frameworks are not in a kf5/ subdir anymore

REVIEW: 117838
This commit is contained in:
Aleix Pol 2014-04-28 15:36:44 +02:00
parent 21a0cda055
commit 36e93e9c5a
3 changed files with 3 additions and 3 deletions

View file

@ -90,7 +90,7 @@ KWinDecorationConfigDialog::KWinDecorationConfigDialog(QString deco, const QList
m_pluginConfigWidget = new QWidget(this);
m_pluginConfigWidget->setLayout(new QVBoxLayout);
m_pluginObject = KPluginTrader::self()->createInstanceFromQuery<QObject>(QStringLiteral("kf5/kwin/kdecorations/config"),
m_pluginObject = KPluginTrader::self()->createInstanceFromQuery<QObject>(QStringLiteral("kwin/kdecorations/config"),
QString(),
QStringLiteral("[X-KDE-PluginInfo-Name] == '%1'").arg(deco),
m_pluginConfigWidget,

View file

@ -89,7 +89,7 @@ void DecorationModel::reload()
void DecorationModel::findDecorations()
{
beginResetModel();
const auto decorations = KPluginTrader::self()->query(QStringLiteral("kf5/kwin/kdecorations"));
const auto decorations = KPluginTrader::self()->query(QStringLiteral("kwin/kdecorations"));
for (const KPluginInfo &plugin : decorations) {
if (plugin.pluginName() == s_auroraePluginName) {
// read the Aurorae themes

View file

@ -105,7 +105,7 @@ bool KDecorationPlugins::loadPlugin(QString nameStr)
auto createFactory = [](const QString &pluginName) -> KDecorationFactory* {
qDebug() << "Trying to load decoration plugin" << pluginName;
const QString query = QStringLiteral("[X-KDE-PluginInfo-Name] == '%1'").arg(pluginName);
const auto offers = KPluginTrader::self()->query(QStringLiteral("kf5/kwin/kdecorations"), QString(), query);
const auto offers = KPluginTrader::self()->query(QStringLiteral("kwin/kdecorations"), QString(), query);
if (offers.isEmpty()) {
qDebug() << "Decoration plugin not found";
return nullptr;