summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/plugins/src/styles/sgi
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/qt4/plugins/src/styles/sgi')
-rw-r--r--tqtinterface/qt4/plugins/src/styles/sgi/main.cpp33
-rw-r--r--tqtinterface/qt4/plugins/src/styles/sgi/sgi.pro20
2 files changed, 53 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 )
diff --git a/tqtinterface/qt4/plugins/src/styles/sgi/sgi.pro b/tqtinterface/qt4/plugins/src/styles/sgi/sgi.pro
new file mode 100644
index 0000000..11f32db
--- /dev/null
+++ b/tqtinterface/qt4/plugins/src/styles/sgi/sgi.pro
@@ -0,0 +1,20 @@
+TEMPLATE = lib
+TARGET = qsgistyle
+
+CONFIG += qt warn_off release plugin
+DESTDIR = ../../../styles
+
+HEADERS = ../../../../include/tqsgistyle.h
+SOURCES = main.cpp \
+ ../../../../src/styles/tqsgistyle.cpp
+
+!tqcontains(styles, motif) {
+ HEADERS += ../../../../include/tqmotifstyle.h
+ SOURCES += ../../../../src/styles/tqmotifstyle.cpp
+}
+
+unix:OBJECTS_DIR = .obj
+win32:OBJECTS_DIR = obj
+
+target.path += $$plugins.path/styles
+INSTALLS += target