-rw-r--r-- | noncore/styles/liquid/liquid.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/styles/liquid/liquid.cpp b/noncore/styles/liquid/liquid.cpp index c8f8d20..daac22c 100644 --- a/noncore/styles/liquid/liquid.cpp +++ b/noncore/styles/liquid/liquid.cpp | |||
@@ -159,48 +159,49 @@ bool TransMenuHandler::eventFilter(QObject *obj, QEvent *ev) | |||
159 | 159 | ||
160 | wid-> setBackgroundMode( QWidget::PaletteBackground ); | 160 | wid-> setBackgroundMode( QWidget::PaletteBackground ); |
161 | } | 161 | } |
162 | delete ol; | 162 | delete ol; |
163 | } | 163 | } |
164 | } | 164 | } |
165 | return(false); | 165 | return(false); |
166 | } | 166 | } |
167 | 167 | ||
168 | 168 | ||
169 | static int qt_version ( ) | 169 | static int qt_version ( ) |
170 | { | 170 | { |
171 | const char *qver = qVersion ( ); | 171 | const char *qver = qVersion ( ); |
172 | return ( qver [0] - '0' ) * 100 + ( qver [2] - '0' ) * 10 + ( qver [4] - '0' ); | 172 | return ( qver [0] - '0' ) * 100 + ( qver [2] - '0' ) * 10 + ( qver [4] - '0' ); |
173 | } | 173 | } |
174 | 174 | ||
175 | 175 | ||
176 | LiquidStyle::LiquidStyle() | 176 | LiquidStyle::LiquidStyle() |
177 | :QWindowsStyle() | 177 | :QWindowsStyle() |
178 | { | 178 | { |
179 | setName ( "LiquidStyle" ); | 179 | setName ( "LiquidStyle" ); |
180 | 180 | ||
181 | oldqte = ( qt_version ( ) < 234 ); | 181 | oldqte = ( qt_version ( ) < 234 ); |
182 | flatTBButtons = false; | 182 | flatTBButtons = false; |
183 | currentHeader = 0; | ||
183 | 184 | ||
184 | btnMaskBmp = QBitmap(37, 26, buttonmask_bits, true); | 185 | btnMaskBmp = QBitmap(37, 26, buttonmask_bits, true); |
185 | btnMaskBmp.setMask(btnMaskBmp); | 186 | btnMaskBmp.setMask(btnMaskBmp); |
186 | htmlBtnMaskBmp = QBitmap(37, 26, htmlbuttonmask_bits, true); | 187 | htmlBtnMaskBmp = QBitmap(37, 26, htmlbuttonmask_bits, true); |
187 | htmlBtnMaskBmp.setMask(htmlBtnMaskBmp); | 188 | htmlBtnMaskBmp.setMask(htmlBtnMaskBmp); |
188 | headerHoverID = -1; | 189 | headerHoverID = -1; |
189 | highlightWidget = NULL; | 190 | highlightWidget = NULL; |
190 | setButtonDefaultIndicatorWidth(0); | 191 | setButtonDefaultIndicatorWidth(0); |
191 | btnDict.setAutoDelete(true); | 192 | btnDict.setAutoDelete(true); |
192 | bevelFillDict.setAutoDelete(true); | 193 | bevelFillDict.setAutoDelete(true); |
193 | smallBevelFillDict.setAutoDelete(true); | 194 | smallBevelFillDict.setAutoDelete(true); |
194 | 195 | ||
195 | rMatrix.rotate(270.0); | 196 | rMatrix.rotate(270.0); |
196 | btnBorderPix = new QPixmap; | 197 | btnBorderPix = new QPixmap; |
197 | btnBorderPix->convertFromImage(qembed_findImage("buttonfill")); | 198 | btnBorderPix->convertFromImage(qembed_findImage("buttonfill")); |
198 | btnBlendPix = new QPixmap; | 199 | btnBlendPix = new QPixmap; |
199 | btnBlendPix->convertFromImage(qembed_findImage("buttonborder")); | 200 | btnBlendPix->convertFromImage(qembed_findImage("buttonborder")); |
200 | bevelFillPix = new QPixmap; | 201 | bevelFillPix = new QPixmap; |
201 | bevelFillPix->convertFromImage(qembed_findImage("clear_fill_large")); | 202 | bevelFillPix->convertFromImage(qembed_findImage("clear_fill_large")); |
202 | smallBevelFillPix = new QPixmap; | 203 | smallBevelFillPix = new QPixmap; |
203 | smallBevelFillPix->convertFromImage(qembed_findImage("clear_fill_small")); | 204 | smallBevelFillPix->convertFromImage(qembed_findImage("clear_fill_small")); |
204 | // new stuff | 205 | // new stuff |
205 | vsbSliderFillPix = menuPix = NULL; | 206 | vsbSliderFillPix = menuPix = NULL; |
206 | menuHandler = new TransMenuHandler(this); | 207 | menuHandler = new TransMenuHandler(this); |