summaryrefslogtreecommitdiff
path: root/noncore/styles/theme/plugin.cpp
Unidiff
Diffstat (limited to 'noncore/styles/theme/plugin.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/styles/theme/plugin.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/styles/theme/plugin.cpp b/noncore/styles/theme/plugin.cpp
index 2560720..dca8685 100644
--- a/noncore/styles/theme/plugin.cpp
+++ b/noncore/styles/theme/plugin.cpp
@@ -1,21 +1,21 @@
1#include <qapplication.h> 1#include <qapplication.h>
2 2
3#include "othemestyle.h" 3#include "othemestyle.h"
4#include "themeset.h" 4#include "themeset.h"
5#include "plugin.h" 5#include "plugin.h"
6 6
7 7
8 8
9ThemeInterface::ThemeInterface ( ) : ref ( 0 ) 9ThemeInterface::ThemeInterface ( )
10{ 10{
11 m_widget = 0; 11 m_widget = 0;
12} 12}
13 13
14ThemeInterface::~ThemeInterface ( ) 14ThemeInterface::~ThemeInterface ( )
15{ 15{
16} 16}
17 17
18QStyle *ThemeInterface::style ( ) 18QStyle *ThemeInterface::style ( )
19{ 19{
20 return new OThemeStyle ( "" ); 20 return new OThemeStyle ( "" );
21} 21}
@@ -56,24 +56,26 @@ void ThemeInterface::reject ( )
56 56
57 57
58QRESULT ThemeInterface::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) 58QRESULT ThemeInterface::queryInterface ( const QUuid &uuid, QUnknownInterface **iface )
59{ 59{
60 *iface = 0; 60 *iface = 0;
61 61
62 if ( uuid == IID_QUnknown ) 62 if ( uuid == IID_QUnknown )
63 *iface = this; 63 *iface = this;
64 else if ( uuid == IID_Style ) 64 else if ( uuid == IID_Style )
65 *iface = this; 65 *iface = this;
66 else if ( uuid == IID_StyleExtended ) 66 else if ( uuid == IID_StyleExtended )
67 *iface = this; 67 *iface = this;
68 else
69 return QS_FALSE;
68 70
69 if ( *iface ) 71 if ( *iface )
70 (*iface)-> addRef ( ); 72 (*iface)-> addRef ( );
71 73
72 return QS_OK; 74 return QS_OK;
73} 75}
74 76
75Q_EXPORT_INTERFACE() 77Q_EXPORT_INTERFACE()
76{ 78{
77 Q_CREATE_INSTANCE( ThemeInterface ) 79 Q_CREATE_INSTANCE( ThemeInterface )
78} 80}
79 81