You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
538 B
35 lines
538 B
#include <qplatinumstyle.h>
|
|
#include <qstyleplugin.h>
|
|
|
|
class PlatinumStyle : public QStylePlugin
|
|
{
|
|
public:
|
|
PlatinumStyle();
|
|
|
|
QStringList keys() const;
|
|
QStyle *create( const QString& );
|
|
};
|
|
|
|
PlatinumStyle::PlatinumStyle()
|
|
: QStylePlugin()
|
|
{
|
|
}
|
|
|
|
QStringList PlatinumStyle::keys() const
|
|
{
|
|
QStringList list;
|
|
list << "Platinum";
|
|
return list;
|
|
}
|
|
|
|
QStyle* PlatinumStyle::create( const QString& s )
|
|
{
|
|
if ( s.lower() == "platinum" )
|
|
return new QPlatinumStyle();
|
|
|
|
return 0;
|
|
}
|
|
|
|
|
|
Q_EXPORT_PLUGIN( PlatinumStyle )
|