summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/plugins/src/styles/sgi/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/qt4/plugins/src/styles/sgi/main.cpp')
-rw-r--r--tqtinterface/qt4/plugins/src/styles/sgi/main.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/tqtinterface/qt4/plugins/src/styles/sgi/main.cpp b/tqtinterface/qt4/plugins/src/styles/sgi/main.cpp
new file mode 100644
index 0000000..9e4331f
--- /dev/null
+++ b/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 )