Diffstat (limited to 'noncore/decorations/polished') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/decorations/polished/polished.cpp | 4 | ||||
-rw-r--r-- | noncore/decorations/polished/polished.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/noncore/decorations/polished/polished.cpp b/noncore/decorations/polished/polished.cpp index 30f1a84..43179be 100644 --- a/noncore/decorations/polished/polished.cpp +++ b/noncore/decorations/polished/polished.cpp | |||
@@ -19,13 +19,13 @@ | |||
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | 20 | ||
21 | #include "polished.h" | 21 | #include "polished.h" |
22 | #include <qpainter.h> | 22 | #include <qpainter.h> |
23 | #include <qapplication.h> | 23 | #include <qapplication.h> |
24 | 24 | ||
25 | PolishedDecoration::PolishedDecoration() : ref(0) | 25 | PolishedDecoration::PolishedDecoration() |
26 | { | 26 | { |
27 | } | 27 | } |
28 | 28 | ||
29 | PolishedDecoration::~PolishedDecoration() | 29 | PolishedDecoration::~PolishedDecoration() |
30 | { | 30 | { |
31 | } | 31 | } |
@@ -155,12 +155,14 @@ QRESULT PolishedDecoration::queryInterface( const QUuid &uuid, QUnknownInterface | |||
155 | { | 155 | { |
156 | *iface = 0; | 156 | *iface = 0; |
157 | if ( uuid == IID_QUnknown ) | 157 | if ( uuid == IID_QUnknown ) |
158 | *iface = this; | 158 | *iface = this; |
159 | else if ( uuid == IID_WindowDecoration ) | 159 | else if ( uuid == IID_WindowDecoration ) |
160 | *iface = this; | 160 | *iface = this; |
161 | else | ||
162 | return QS_FALSE; | ||
161 | 163 | ||
162 | if ( *iface ) | 164 | if ( *iface ) |
163 | (*iface)->addRef(); | 165 | (*iface)->addRef(); |
164 | return QS_OK; | 166 | return QS_OK; |
165 | } | 167 | } |
166 | 168 | ||
diff --git a/noncore/decorations/polished/polished.h b/noncore/decorations/polished/polished.h index e5c19c0..d661427 100644 --- a/noncore/decorations/polished/polished.h +++ b/noncore/decorations/polished/polished.h | |||
@@ -39,11 +39,9 @@ public: | |||
39 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); | 39 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); |
40 | Q_REFCOUNT | 40 | Q_REFCOUNT |
41 | 41 | ||
42 | protected: | 42 | protected: |
43 | void PolishedDecoration::drawBlend( QPainter *, const QRect &r, const QColor &c1, const QColor&c2 ) const; | 43 | void PolishedDecoration::drawBlend( QPainter *, const QRect &r, const QColor &c1, const QColor&c2 ) const; |
44 | 44 | ||
45 | private: | ||
46 | ulong ref; | ||
47 | }; | 45 | }; |
48 | 46 | ||
49 | #endif | 47 | #endif |