libyui-qt  2.49.2
YQProgressBar Class Reference
Inheritance diagram for YQProgressBar:
Collaboration diagram for YQProgressBar:

Public Member Functions

 YQProgressBar (YWidget *parent, const std::string &label, int maxValue=100)
 Constructor.
 
virtual ~YQProgressBar ()
 Destructor.
 
virtual void setLabel (const std::string &label)
 Set the label (the caption above the progress bar). More...
 
virtual void setValue (int newValue)
 Set the current progress value ( <= maxValue() ). 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...
 
virtual bool setKeyboardFocus ()
 Accept the keyboard focus.
 

Protected Attributes

YQWidgetCaption_caption
 
QProgressBar * _qt_progressbar
 

Detailed Description

Definition at line 37 of file YQProgressBar.h.

Member Function Documentation

◆ preferredHeight()

int YQProgressBar::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

Definition at line 106 of file YQProgressBar.cc.

◆ preferredWidth()

int YQProgressBar::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

Definition at line 97 of file YQProgressBar.cc.

◆ setEnabled()

void YQProgressBar::setEnabled ( bool  enabled)
virtual

Set enabled/disabled state.

Reimplemented from YWidget.

Definition at line 89 of file YQProgressBar.cc.

◆ setLabel()

void YQProgressBar::setLabel ( const std::string &  label)
virtual

Set the label (the caption above the progress bar).

Reimplemented from YProgressBar.

Definition at line 74 of file YQProgressBar.cc.

Here is the call graph for this function:

◆ setSize()

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

Set the new size of the widget.

Reimplemented from YWidget.

Definition at line 112 of file YQProgressBar.cc.

◆ setValue()

void YQProgressBar::setValue ( int  newValue)
virtual

Set the current progress value ( <= maxValue() ).

Reimplemented from YProgressBar.

Definition at line 81 of file YQProgressBar.cc.


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