2 * Copyright (C) 2001 Rik Hemsley (rikkus) <rik@kde.org>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public License
15 * along with this library; see the file COPYING.LIB. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
24 #include <QtGui/QPalette>
31 class WebStyle
: public KStyle
39 void polish(QApplication
*);
41 void unPolish(QWidget
*);
43 void polish(QWidget
*);
45 void polish(QPalette
&);
47 void unPolish(QApplication
*);
56 const QColorGroup
& g
,
58 const QBrush
* fill
= 0
61 QRect
buttonRect(int x
, int y
, int w
, int h
);
72 const QBrush
* fill
= 0
75 void drawPushButton(QPushButton
*, QPainter
*);
77 virtual void drawPushButtonLabel(QPushButton
*, QPainter
*);
79 void drawScrollBarControls
88 QStyle::ScrollControl scrollBarPointOver
104 QSize
indicatorSize() const;
119 QSize
exclusiveIndicatorSize() const;
121 void drawExclusiveIndicator
134 void drawIndicatorMask
144 void drawExclusiveIndicatorMask
163 bool editable
= false,
165 const QBrush
* fill
= 0
168 QRect
comboButtonRect(int x
, int y
, int w
, int h
);
170 QRect
comboButtonFocusRect(int x
, int y
, int w
, int h
);
172 int sliderLength() const;
174 void drawSliderGroove
197 const QBrush
* fill
= 0
249 void drawKToolBarButton
256 const QColorGroup
& g
,
261 KToolButtonType
= Icon
,
262 const QString
& btext
= QString(),
281 void drawPopupMenuItem
297 void drawKProgressBlock
358 const QTabBar
* tabBar
,
371 void drawKickerHandle
378 const QColorGroup
& g
,
382 void drawKickerAppletHandle
389 const QColorGroup
& g
,
393 void drawKickerTaskButton
400 const QColorGroup
& g
,
401 const QString
& title
,
407 int popupMenuItemHeight(bool, QMenuItem
*, const QFontMetrics
&);
409 Qt::GUIStyle
guiStyle() const { return Qt::MotifStyle
; }
411 bool eventFilter(QObject
*, QEvent
*);