libyui-qt  2.46.1
 All Classes Functions Variables
YQBarGraph Class Reference
Inheritance diagram for YQBarGraph:
Collaboration diagram for YQBarGraph:

Public Member Functions

 YQBarGraph (YWidget *parent)
 
virtual ~YQBarGraph ()
 
virtual void doUpdate ()
 
virtual void setEnabled (bool enabled)
 
virtual int preferredWidth ()
 
virtual int preferredHeight ()
 
virtual void setSize (int newWidth, int newHeight)
 

Protected Member Functions

virtual bool event (QEvent *event)
 
virtual void paintEvent (QPaintEvent *painter)
 
YColor defaultSegmentColor (unsigned index)
 
YColor defaultTextColor (unsigned index)
 

Detailed Description

Definition at line 40 of file YQBarGraph.h.

Constructor & Destructor Documentation

YQBarGraph::YQBarGraph ( YWidget *  parent)

Constructor.

Definition at line 53 of file YQBarGraph.cc.

YQBarGraph::~YQBarGraph ( )
virtual

Destructor.

Definition at line 61 of file YQBarGraph.cc.

Member Function Documentation

YColor YQBarGraph::defaultSegmentColor ( unsigned  index)
protected

Return one from a set of default segment background colors.

Definition at line 190 of file YQBarGraph.cc.

YColor YQBarGraph::defaultTextColor ( unsigned  index)
protected

Return one from a set of default text colors. This text color is guaranteed to contrast with the defaultSegmentColor with the same index.

Definition at line 209 of file YQBarGraph.cc.

void YQBarGraph::doUpdate ( )
virtual

Perform a visual update on the screen.

Implemented from YBarGraph.

Definition at line 68 of file YQBarGraph.cc.

void YQBarGraph::paintEvent ( QPaintEvent *  painter)
protectedvirtual

Draw the contents.

Reimplemented from QFrame.

Definition at line 93 of file YQBarGraph.cc.

Here is the call graph for this function:

int YQBarGraph::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

Definition at line 265 of file YQBarGraph.cc.

int YQBarGraph::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

Definition at line 239 of file YQBarGraph.cc.

void YQBarGraph::setEnabled ( bool  enabled)
virtual

Set enabled/disabled state.

Reimplemented from YWidget.

Definition at line 231 of file YQBarGraph.cc.

void YQBarGraph::setSize ( int  newWidth,
int  newHeight 
)
virtual

Set the new size of the widget.

Reimplemented from YWidget.

Definition at line 291 of file YQBarGraph.cc.


The documentation for this class was generated from the following files: