Diffstat (limited to 'noncore/styles/liquid/plugin.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/styles/liquid/plugin.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/styles/liquid/plugin.cpp b/noncore/styles/liquid/plugin.cpp index 6813fc5..fb322a9 100644 --- a/noncore/styles/liquid/plugin.cpp +++ b/noncore/styles/liquid/plugin.cpp | |||
@@ -1,33 +1,33 @@ | |||
1 | #include <qapplication.h> | 1 | #include <qapplication.h> |
2 | 2 | ||
3 | #include "liquid.h" | 3 | #include "liquid.h" |
4 | #include "liquidset.h" | 4 | #include "liquidset.h" |
5 | #include "plugin.h" | 5 | #include "plugin.h" |
6 | 6 | ||
7 | 7 | ||
8 | 8 | ||
9 | LiquidInterface::LiquidInterface ( ) : ref ( 0 ) | 9 | LiquidInterface::LiquidInterface ( ) |
10 | { | 10 | { |
11 | m_widget = 0; | 11 | m_widget = 0; |
12 | } | 12 | } |
13 | 13 | ||
14 | LiquidInterface::~LiquidInterface ( ) | 14 | LiquidInterface::~LiquidInterface ( ) |
15 | { | 15 | { |
16 | } | 16 | } |
17 | 17 | ||
18 | QStyle *LiquidInterface::style ( ) | 18 | QStyle *LiquidInterface::style ( ) |
19 | { | 19 | { |
20 | return new LiquidStyle ( ); | 20 | return new LiquidStyle ( ); |
21 | } | 21 | } |
22 | 22 | ||
23 | QString LiquidInterface::name ( ) const | 23 | QString LiquidInterface::name ( ) const |
24 | { | 24 | { |
25 | return qApp-> translate ( "Styles", "Liquid" ); | 25 | return qApp-> translate ( "Styles", "Liquid" ); |
26 | } | 26 | } |
27 | 27 | ||
28 | QString LiquidInterface::description ( ) const | 28 | QString LiquidInterface::description ( ) const |
29 | { | 29 | { |
30 | return qApp-> translate ( "Styles", "High Performance Liquid style by Mosfet" ); | 30 | return qApp-> translate ( "Styles", "High Performance Liquid style by Mosfet" ); |
31 | } | 31 | } |
32 | 32 | ||
33 | bool LiquidInterface::hasSettings ( ) const | 33 | bool LiquidInterface::hasSettings ( ) const |
@@ -44,36 +44,38 @@ QWidget *LiquidInterface::create ( QWidget *parent, const char *name ) | |||
44 | 44 | ||
45 | bool LiquidInterface::accept ( ) | 45 | bool LiquidInterface::accept ( ) |
46 | { | 46 | { |
47 | if ( !m_widget ) | 47 | if ( !m_widget ) |
48 | return false; | 48 | return false; |
49 | 49 | ||
50 | return m_widget-> writeConfig ( ); | 50 | return m_widget-> writeConfig ( ); |
51 | } | 51 | } |
52 | 52 | ||
53 | void LiquidInterface::reject ( ) | 53 | void LiquidInterface::reject ( ) |
54 | { | 54 | { |
55 | } | 55 | } |
56 | 56 | ||
57 | 57 | ||
58 | QRESULT LiquidInterface::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) | 58 | QRESULT LiquidInterface::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 | ||
75 | Q_EXPORT_INTERFACE() | 77 | Q_EXPORT_INTERFACE() |
76 | { | 78 | { |
77 | Q_CREATE_INSTANCE( LiquidInterface ) | 79 | Q_CREATE_INSTANCE( LiquidInterface ) |
78 | } | 80 | } |
79 | 81 | ||