diff options
Diffstat (limited to 'experimental/tqtinterface/qt4/plugins/src/styles/sgi/main.cpp')
-rw-r--r-- | experimental/tqtinterface/qt4/plugins/src/styles/sgi/main.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/experimental/tqtinterface/qt4/plugins/src/styles/sgi/main.cpp b/experimental/tqtinterface/qt4/plugins/src/styles/sgi/main.cpp new file mode 100644 index 000000000..9e4331f82 --- /dev/null +++ b/experimental/tqtinterface/qt4/plugins/src/styles/sgi/main.cpp @@ -0,0 +1,33 @@ +#include <tqstyleplugin.h> +#include <tqsgistyle.h> + +class SGIStyle : public TQStylePlugin +{ +public: + SGIStyle(); + + TQStringList keys() const; + TQStyle *create( const TQString& ); +}; + +SGIStyle::SGIStyle() +: TQStylePlugin() +{ +} + +TQStringList SGIStyle::keys() const +{ + TQStringList list; + list << "SGI"; + return list; +} + +TQStyle* SGIStyle::create( const TQString& s ) +{ + if ( s.lower() == "sgi" ) + return new TQSGIStyle(); + + return 0; +} + +TQ_EXPORT_PLUGIN( SGIStyle ) |