diff options
Diffstat (limited to 'plugins/src/styles/motif')
-rw-r--r-- | plugins/src/styles/motif/main.cpp | 34 | ||||
-rw-r--r-- | plugins/src/styles/motif/motif.pro | 15 |
2 files changed, 49 insertions, 0 deletions
diff --git a/plugins/src/styles/motif/main.cpp b/plugins/src/styles/motif/main.cpp new file mode 100644 index 000000000..b0241ce1e --- /dev/null +++ b/plugins/src/styles/motif/main.cpp @@ -0,0 +1,34 @@ +#include <qstyleplugin.h> +#include <qmotifstyle.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; +} + +Q_EXPORT_PLUGIN( MotifStyle ) + diff --git a/plugins/src/styles/motif/motif.pro b/plugins/src/styles/motif/motif.pro new file mode 100644 index 000000000..2aee623c9 --- /dev/null +++ b/plugins/src/styles/motif/motif.pro @@ -0,0 +1,15 @@ +TEMPLATE = lib +TARGET = qmotifstyle + +CONFIG += qt warn_off release plugin +DESTDIR = ../../../styles + +HEADERS = ../../../../include/qmotifstyle.h +SOURCES = main.cpp \ + ../../../../src/styles/qmotifstyle.cpp + +unix:OBJECTS_DIR = .obj +win32:OBJECTS_DIR = obj + +target.path += $$plugins.path/styles +INSTALLS += target |