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