libyui-qt
Loading...
Searching...
No Matches
YQProgressBar Class Reference
Inheritance diagram for YQProgressBar:
Collaboration diagram for YQProgressBar:

Public Member Functions

 YQProgressBar (YWidget *parent, const std::string &label, int maxValue=100)
 
virtual ~YQProgressBar ()
 
virtual void setLabel (const std::string &label)
 
virtual void setValue (int newValue)
 
virtual void setEnabled (bool enabled)
 
virtual int preferredWidth ()
 
virtual int preferredHeight ()
 
virtual void setSize (int newWidth, int newHeight)
 
virtual bool setKeyboardFocus ()
 

Protected Attributes

YQWidgetCaption_caption
 
QProgressBar * _qt_progressbar
 

Constructor & Destructor Documentation

◆ YQProgressBar()

YQProgressBar::YQProgressBar ( YWidget *  parent,
const std::string &  label,
int  maxValue = 100 
)

Constructor.

◆ ~YQProgressBar()

YQProgressBar::~YQProgressBar ( )
virtual

Destructor.

Member Function Documentation

◆ preferredHeight()

int YQProgressBar::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

◆ preferredWidth()

int YQProgressBar::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

◆ setEnabled()

void YQProgressBar::setEnabled ( bool  enabled)
virtual

Set enabled/disabled state.

Reimplemented from YWidget.

◆ setKeyboardFocus()

bool YQProgressBar::setKeyboardFocus ( )
virtual

Accept the keyboard focus.

◆ setLabel()

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

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

Reimplemented from YProgressBar.

◆ setSize()

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

Set the new size of the widget.

Reimplemented from YWidget.

◆ setValue()

void YQProgressBar::setValue ( int  newValue)
virtual

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

Reimplemented from YProgressBar.


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