|
|
Extends the QStyle class with virtual methods to draw KDE widgets.
To create a new KStyle, reimplement the virtual functions which draw the GUI elements.
void drawKToolBar (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool floating = false) |
Draw a toolbar (without buttons, etc.)
x
, @y, @w, and @h tell in which rectangle to draw the toolbar.
Parameters:
floating | @true of this is a floating toolbar, @false if it is part of the application window. |
void drawKBarHandle (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool horizontal=false, QBrush *fill=NULL) |
Draw a menubar/toolbar handle.
Parameters:
horizontal | If @true, the menubar/toolbar is oriented horizontally. |
fill | The QBrush to fill the handle with. |
void drawKToolBarButton (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool sunken=false, bool raised = true, bool enabled = true, bool popup = false, KToolButtonType icontext = Icon, const QString& btext=QString::null, const QPixmap *icon=NULL, QFont *font=NULL) |
Draw a toolbar button.
void drawKMenuBar (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, QBrush *fill=NULL) |
Draw a menubar (without menus).
Parameters:
fill | The QBrush to fill the menubar with. |
void drawKMenuItem (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool active, QMenuItem *item, QBrush *fill=NULL) |
Draw a menu item (ex, "&File").
void drawKProgressBlock (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, QBrush *fill) |
Draw one block on a progress bar.
void getKProgressBackground (const QColorGroup &g, QBrush &bg) |
Retrieve the color used to the background of a progress bar.
This isn't a drawXXX method due to KProgress implementation.
void drawOPToolBar (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, QBrush *fill=NULL) |
Internal method for use in the new OpenParts implementation. You should not override this but drawKToolBar instead.