blob: 3ccf6c979c487bd757f93e437fd6cdeec608786f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 )
|