Line | |
---|
1 | #include <qstyleplugin.h>
|
---|
2 | #include <qwindowsstyle.h>
|
---|
3 |
|
---|
4 | class WindowsStyle : public QStylePlugin
|
---|
5 | {
|
---|
6 | public:
|
---|
7 | WindowsStyle();
|
---|
8 |
|
---|
9 | QStringList keys() const;
|
---|
10 | QStyle *create( const QString& );
|
---|
11 | };
|
---|
12 |
|
---|
13 | WindowsStyle::WindowsStyle()
|
---|
14 | : QStylePlugin()
|
---|
15 | {
|
---|
16 | }
|
---|
17 |
|
---|
18 | QStringList WindowsStyle::keys() const
|
---|
19 | {
|
---|
20 | QStringList list;
|
---|
21 | list << "Windows";
|
---|
22 | return list;
|
---|
23 | }
|
---|
24 |
|
---|
25 | QStyle* WindowsStyle::create( const QString& s )
|
---|
26 | {
|
---|
27 | if ( s.lower() == "windows" )
|
---|
28 | return new QWindowsStyle();
|
---|
29 |
|
---|
30 | return 0;
|
---|
31 | }
|
---|
32 |
|
---|
33 | Q_EXPORT_PLUGIN( WindowsStyle )
|
---|
34 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.