class KStyle

Extends the QStyle class with virtual methods to draw KDE widgets. More...

Definition#include <kstyle.h>
InheritsQPlatinumStyle (qt)
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods


Detailed Description

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)

[virtual]

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)

[virtual]

Draw a menubar/toolbar handle.

Parameters:
horizontalIf @true, the menubar/toolbar is oriented horizontally.
fillThe 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)

[virtual]

Draw a toolbar button.

void  drawKMenuBar (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, QBrush *fill=NULL)

[virtual]

Draw a menubar (without menus).

Parameters:
fillThe 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)

[virtual]

Draw a menu item (ex, "&File").

void  drawKProgressBlock (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, QBrush *fill)

[virtual]

Draw one block on a progress bar.

void  getKProgressBackground (const QColorGroup &g, QBrush &bg)

[virtual]

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)

[virtual]

Internal method for use in the new OpenParts implementation. You should not override this but drawKToolBar instead.