source: trunk/plugins/src/styles/platinum/main.cpp

Last change on this file was 204, checked in by rudi, 14 years ago

Added plugin source code

File size: 572 bytes
Line 
1#include <qplatinumstyle.h>
2#include <qstyleplugin.h>
3
4class PlatinumStyle : public QStylePlugin
5{
6public:
7 PlatinumStyle();
8
9 QStringList keys() const;
10 QStyle *create( const QString& );
11};
12
13PlatinumStyle::PlatinumStyle()
14: QStylePlugin()
15{
16}
17
18QStringList PlatinumStyle::keys() const
19{
20 QStringList list;
21 list << "Platinum";
22 return list;
23}
24
25QStyle* PlatinumStyle::create( const QString& s )
26{
27 if ( s.lower() == "platinum" )
28 return new QPlatinumStyle();
29
30 return 0;
31}
32
33
34Q_EXPORT_PLUGIN( PlatinumStyle )
Note: See TracBrowser for help on using the repository browser.