libyui-qt  2.46.13
YQBarGraph Class Reference
Inheritance diagram for YQBarGraph:
Collaboration diagram for YQBarGraph:

Public Member Functions

 YQBarGraph (YWidget *parent)
 Constructor.
 
virtual ~YQBarGraph ()
 Destructor.
 
virtual void doUpdate ()
 Perform a visual update on the screen. More...
 
virtual void setEnabled (bool enabled)
 Set enabled/disabled state. More...
 
virtual int preferredWidth ()
 Preferred width of the widget. More...
 
virtual int preferredHeight ()
 Preferred height of the widget. More...
 
virtual void setSize (int newWidth, int newHeight)
 Set the new size of the widget. More...
 

Protected Member Functions

virtual bool event (QEvent *event)
 
virtual void paintEvent (QPaintEvent *painter)
 Draw the contents. More...
 
YColor defaultSegmentColor (unsigned index)
 Return one from a set of default segment background colors.
 
YColor defaultTextColor (unsigned index)
 Return one from a set of default text colors. More...
 

Properties

QString BackgroundColors
 
QString ForegroundColors
 

Detailed Description

Definition at line 39 of file YQBarGraph.h.

Member Function Documentation

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 221 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 290 of file YQBarGraph.cc.

int YQBarGraph::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

Definition at line 264 of file YQBarGraph.cc.

void YQBarGraph::setEnabled ( bool  enabled)
virtual

Set enabled/disabled state.

Reimplemented from YWidget.

Definition at line 256 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 316 of file YQBarGraph.cc.


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