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