diff options
Diffstat (limited to 'plugins/src/styles/windows/main.cpp')
-rw-r--r-- | plugins/src/styles/windows/main.cpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/plugins/src/styles/windows/main.cpp b/plugins/src/styles/windows/main.cpp new file mode 100644 index 0000000..3ccf6c9 --- /dev/null +++ b/plugins/src/styles/windows/main.cpp @@ -0,0 +1,34 @@ +#include <qstyleplugin.h> +#include <qwindowsstyle.h> + +class WindowsStyle : public QStylePlugin +{ +public: + WindowsStyle(); + + QStringList keys() const; + QStyle *create( const QString& ); +}; + +WindowsStyle::WindowsStyle() +: QStylePlugin() +{ +} + +QStringList WindowsStyle::keys() const +{ + QStringList list; + list << "Windows"; + return list; +} + +QStyle* WindowsStyle::create( const QString& s ) +{ + if ( s.lower() == "windows" ) + return new QWindowsStyle(); + + return 0; +} + +Q_EXPORT_PLUGIN( WindowsStyle ) + |