mirror of https://github.com/cutefishos/qt-plugins
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
722 B
C++
33 lines
722 B
C++
#include <qpa/qplatformthemeplugin.h>
|
|
#include "platformtheme.h"
|
|
|
|
#include <private/xdgiconloader/xdgiconloader_p.h>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
void updateXdgIconSystemTheme()
|
|
{
|
|
XdgIconLoader::instance()->updateSystemTheme();
|
|
}
|
|
|
|
class PlatformThemePlugin : public QPlatformThemePlugin
|
|
{
|
|
Q_OBJECT
|
|
Q_PLUGIN_METADATA(IID QPlatformThemeFactoryInterface_iid FILE "cutefish-platformtheme.json")
|
|
|
|
public:
|
|
PlatformThemePlugin(QObject *parent = nullptr)
|
|
: QPlatformThemePlugin(parent) {}
|
|
|
|
QPlatformTheme *create(const QString &key, const QStringList ¶mList) override
|
|
{
|
|
Q_UNUSED(key)
|
|
Q_UNUSED(paramList)
|
|
return new PlatformTheme;
|
|
}
|
|
};
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
#include "main.moc"
|