-rw-r--r-- | noncore/styles/flat/flat.cpp | 2 | ||||
-rw-r--r-- | noncore/styles/flat/flat.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/noncore/styles/flat/flat.cpp b/noncore/styles/flat/flat.cpp index 24366f6..f3bacf9 100644 --- a/noncore/styles/flat/flat.cpp +++ b/noncore/styles/flat/flat.cpp | |||
@@ -1049,25 +1049,25 @@ void FlatStyle::drawPopupMenuItem( QPainter* p, bool checkable, int maxpmw, int | |||
1049 | } | 1049 | } |
1050 | #endif | 1050 | #endif |
1051 | } | 1051 | } |
1052 | 1052 | ||
1053 | void FlatStyle::getButtonShift( int &x, int &y ) | 1053 | void FlatStyle::getButtonShift( int &x, int &y ) |
1054 | { | 1054 | { |
1055 | x = 0; y = 0; | 1055 | x = 0; y = 0; |
1056 | } | 1056 | } |
1057 | 1057 | ||
1058 | //=========================================================================== | 1058 | //=========================================================================== |
1059 | 1059 | ||
1060 | FlatStyleImpl::FlatStyleImpl() | 1060 | FlatStyleImpl::FlatStyleImpl() |
1061 | : flat(0), ref(0) | 1061 | : flat(0) |
1062 | { | 1062 | { |
1063 | } | 1063 | } |
1064 | 1064 | ||
1065 | FlatStyleImpl::~FlatStyleImpl() | 1065 | FlatStyleImpl::~FlatStyleImpl() |
1066 | { | 1066 | { |
1067 | // We do not delete the style because Qt does that when a new style | 1067 | // We do not delete the style because Qt does that when a new style |
1068 | // is set. | 1068 | // is set. |
1069 | } | 1069 | } |
1070 | 1070 | ||
1071 | QStyle *FlatStyleImpl::style() | 1071 | QStyle *FlatStyleImpl::style() |
1072 | { | 1072 | { |
1073 | if ( !flat ) | 1073 | if ( !flat ) |
diff --git a/noncore/styles/flat/flat.h b/noncore/styles/flat/flat.h index ebea95b..4591852 100644 --- a/noncore/styles/flat/flat.h +++ b/noncore/styles/flat/flat.h | |||
@@ -103,16 +103,15 @@ class FlatStyleImpl : public StyleInterface | |||
103 | public: | 103 | public: |
104 | FlatStyleImpl(); | 104 | FlatStyleImpl(); |
105 | virtual ~FlatStyleImpl(); | 105 | virtual ~FlatStyleImpl(); |
106 | 106 | ||
107 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); | 107 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); |
108 | Q_REFCOUNT | 108 | Q_REFCOUNT |
109 | 109 | ||
110 | virtual QStyle *style(); | 110 | virtual QStyle *style(); |
111 | virtual QString name() const; | 111 | virtual QString name() const; |
112 | 112 | ||
113 | private: | 113 | private: |
114 | FlatStyle *flat; | 114 | FlatStyle *flat; |
115 | ulong ref; | ||
116 | }; | 115 | }; |
117 | 116 | ||
118 | #endif // FLATSTYLE_H | 117 | #endif // FLATSTYLE_H |