summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/plugins/src/styles/motif
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-07-10 15:17:53 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-07-10 15:17:53 -0500
commitdda8474928bd7276e1fad8fb7a601e7c83ff2bc2 (patch)
tree7f83910598b33b12730035f086df20b5a53ab99c /tqtinterface/qt4/plugins/src/styles/motif
parent6260b6178868c03aab1644bf93b0ef043654bdb0 (diff)
downloadexperimental-dda8474928bd7276e1fad8fb7a601e7c83ff2bc2.tar.gz
experimental-dda8474928bd7276e1fad8fb7a601e7c83ff2bc2.zip
Added TQt4 HEAD
Diffstat (limited to 'tqtinterface/qt4/plugins/src/styles/motif')
-rw-r--r--tqtinterface/qt4/plugins/src/styles/motif/main.cpp34
-rw-r--r--tqtinterface/qt4/plugins/src/styles/motif/motif.pro15
2 files changed, 49 insertions, 0 deletions
diff --git a/tqtinterface/qt4/plugins/src/styles/motif/main.cpp b/tqtinterface/qt4/plugins/src/styles/motif/main.cpp
new file mode 100644
index 0000000..73e25e6
--- /dev/null
+++ b/tqtinterface/qt4/plugins/src/styles/motif/main.cpp
@@ -0,0 +1,34 @@
+#include <tqstyleplugin.h>
+#include <tqmotifstyle.h>
+
+class MotifStyle : public TQStylePlugin
+{
+public:
+ MotifStyle();
+
+ TQStringList keys() const;
+ TQStyle *create( const TQString& );
+};
+
+MotifStyle::MotifStyle()
+: TQStylePlugin()
+{
+}
+
+TQStringList MotifStyle::keys() const
+{
+ TQStringList list;
+ list << "Motif";
+ return list;
+}
+
+TQStyle* MotifStyle::create( const TQString& s )
+{
+ if ( s.lower() == "motif" )
+ return new TQMotifStyle();
+
+ return 0;
+}
+
+TQ_EXPORT_PLUGIN( MotifStyle )
+
diff --git a/tqtinterface/qt4/plugins/src/styles/motif/motif.pro b/tqtinterface/qt4/plugins/src/styles/motif/motif.pro
new file mode 100644
index 0000000..95b8372
--- /dev/null
+++ b/tqtinterface/qt4/plugins/src/styles/motif/motif.pro
@@ -0,0 +1,15 @@
+TEMPLATE = lib
+TARGET = qmotifstyle
+
+CONFIG += qt warn_off release plugin
+DESTDIR = ../../../styles
+
+HEADERS = ../../../../include/tqmotifstyle.h
+SOURCES = main.cpp \
+ ../../../../src/styles/tqmotifstyle.cpp
+
+unix:OBJECTS_DIR = .obj
+win32:OBJECTS_DIR = obj
+
+target.path += $$plugins.path/styles
+INSTALLS += target