summaryrefslogtreecommitdiff
path: root/noncore/styles/metal/plugin.cpp
Unidiff
Diffstat (limited to 'noncore/styles/metal/plugin.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/styles/metal/plugin.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/styles/metal/plugin.cpp b/noncore/styles/metal/plugin.cpp
index 4c9f64d..2f0f530 100644
--- a/noncore/styles/metal/plugin.cpp
+++ b/noncore/styles/metal/plugin.cpp
@@ -1,19 +1,19 @@
1#include <qapplication.h> 1#include <qapplication.h>
2 2
3#include "metal.h" 3#include "metal.h"
4#include "plugin.h" 4#include "plugin.h"
5 5
6 6
7MetalInterface::MetalInterface ( ) : ref ( 0 ) 7MetalInterface::MetalInterface ( )
8{ 8{
9} 9}
10 10
11MetalInterface::~MetalInterface ( ) 11MetalInterface::~MetalInterface ( )
12{ 12{
13} 13}
14 14
15QStyle *MetalInterface::style ( ) 15QStyle *MetalInterface::style ( )
16{ 16{
17 return new MetalStyle ( ); 17 return new MetalStyle ( );
18} 18}
19 19
@@ -22,24 +22,26 @@ QString MetalInterface::name ( ) const
22 return qApp-> translate ( "Styles", "Metal" ); 22 return qApp-> translate ( "Styles", "Metal" );
23} 23}
24 24
25 25
26QRESULT MetalInterface::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) 26QRESULT MetalInterface::queryInterface ( const QUuid &uuid, QUnknownInterface **iface )
27{ 27{
28 *iface = 0; 28 *iface = 0;
29 29
30 if ( uuid == IID_QUnknown ) 30 if ( uuid == IID_QUnknown )
31 *iface = this; 31 *iface = this;
32 else if ( uuid == IID_Style ) 32 else if ( uuid == IID_Style )
33 *iface = this; 33 *iface = this;
34 else
35 return QS_FALSE;
34 36
35 if ( *iface ) 37 if ( *iface )
36 (*iface)-> addRef ( ); 38 (*iface)-> addRef ( );
37 39
38 return QS_OK; 40 return QS_OK;
39} 41}
40 42
41Q_EXPORT_INTERFACE() 43Q_EXPORT_INTERFACE()
42{ 44{
43 Q_CREATE_INSTANCE( MetalInterface ) 45 Q_CREATE_INSTANCE( MetalInterface )
44} 46}
45 47