diff options
Diffstat (limited to 'plugins/src/styles/sgi/main.cpp')
-rw-r--r-- | plugins/src/styles/sgi/main.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/plugins/src/styles/sgi/main.cpp b/plugins/src/styles/sgi/main.cpp new file mode 100644 index 000000000..0314525e5 --- /dev/null +++ b/plugins/src/styles/sgi/main.cpp @@ -0,0 +1,33 @@ +#include <qstyleplugin.h> +#include <qsgistyle.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; +} + +Q_EXPORT_PLUGIN( SGIStyle ) |