diff options
Diffstat (limited to 'plugins/src/styles/platinum/main.cpp')
-rw-r--r-- | plugins/src/styles/platinum/main.cpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/plugins/src/styles/platinum/main.cpp b/plugins/src/styles/platinum/main.cpp new file mode 100644 index 0000000..ce2abb2 --- /dev/null +++ b/plugins/src/styles/platinum/main.cpp @@ -0,0 +1,34 @@ +#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 ) |