diff options
author | Timothy Pearson <[email protected]> | 2011-07-10 15:24:15 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-07-10 15:24:15 -0500 |
commit | bd0f3345a938b35ce6a12f6150373b0955b8dd12 (patch) | |
tree | 7a520322212d48ebcb9fbe1087e7fca28b76185c /plugins/src/styles/motif | |
download | qt3-bd0f3345a938b35ce6a12f6150373b0955b8dd12.tar.gz qt3-bd0f3345a938b35ce6a12f6150373b0955b8dd12.zip |
Add Qt3 development HEAD version
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 0000000..c818e4d --- /dev/null +++ b/plugins/src/styles/motif/main.cpp @@ -0,0 +1,34 @@ +#include <qstyleplugin.h> +#include <qmotifstyle.h> + +class MotifStyle : public QStylePlugin +{ +public: + MotifStyle(); + + QStringList keys() const; + QStyle *create( const QString& ); +}; + +MotifStyle::MotifStyle() +: QStylePlugin() +{ +} + +QStringList MotifStyle::keys() const +{ + QStringList list; + list << "Motif"; + return list; +} + +QStyle* MotifStyle::create( const QString& s ) +{ + if ( s.lower() == "motif" ) + return new QMotifStyle(); + + 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 0000000..2aee623 --- /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 |