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

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

Added plugin source code

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