Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion platformthemeplugin/deepin.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"Keys" : [ "deepin" ]
"Keys" : [ "deepin", "DDE" ]
}
7 changes: 4 additions & 3 deletions platformthemeplugin/main.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2017 - 2022 UnionTech Software Technology Co., Ltd.
* SPDX-FileCopyrightText: 2017 - 2023 UnionTech Software Technology Co., Ltd.
* SPDX-License-Identifier: LGPL-3.0-or-later
*/
#include <qpa/qplatformthemeplugin.h>
Expand All @@ -26,10 +26,11 @@ class QDeepinThemePlugin : public QPlatformThemePlugin
QPlatformTheme *QDeepinThemePlugin::create(const QString &key, const QStringList &params)
{
Q_UNUSED(params);
if (!key.compare(QLatin1String(QDeepinTheme::name), Qt::CaseInsensitive))
const QStringList &keys = {QLatin1String(QDeepinTheme::name), QLatin1String("DDE")};
if (keys.contains(key, Qt::CaseInsensitive))
return new QDeepinTheme;

return 0;
return nullptr;
}

QT_END_NAMESPACE
Expand Down