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.
qt-plugins/widgetstyle/pstyleplugin.cpp

21 lines
350 B
C++

#include "pstyleplugin.h"
#include "basestyle.h"
#include <QApplication>
#include <QStyleFactory>
#include <QDebug>
QStringList ProxyStylePlugin::keys() const
{
return {"cutefish"};
}
QStyle *ProxyStylePlugin::create(const QString &key)
{
if (key != QStringLiteral("cutefish")) {
return nullptr;
}
return new BaseStyle;
}