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

Public Member Functions

 YQBusyIndicator (YWidget *parent, const std::string &label, int timeout=1000)
 
virtual ~YQBusyIndicator ()
 
virtual void setLabel (const std::string &label)
 
virtual void setTimeout (int newTimeout)
 
int timeout () const
 
virtual void setAlive (bool newAlive)
 
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
 
BusyBar_bar
 
QTimer * _timer
 
int _timeout
 

Constructor & Destructor Documentation

◆ YQBusyIndicator()

YQBusyIndicator::YQBusyIndicator ( YWidget * parent,
const std::string & label,
int timeout = 1000 )

Constructor.

◆ ~YQBusyIndicator()

YQBusyIndicator::~YQBusyIndicator ( )
virtual

Destructor.

Member Function Documentation

◆ preferredHeight()

int YQBusyIndicator::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

◆ preferredWidth()

int YQBusyIndicator::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

◆ setAlive()

void YQBusyIndicator::setAlive ( bool newAlive)
virtual

Send a keep allive message.

Reimplemented from YBusyIndicator.

◆ setEnabled()

void YQBusyIndicator::setEnabled ( bool enabled)
virtual

Set enabled/disabled state.

Reimplemented from YWidget.

◆ setKeyboardFocus()

bool YQBusyIndicator::setKeyboardFocus ( )
virtual

Accept the keyboard focus.

◆ setLabel()

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

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

Reimplemented from YBusyIndicator.

◆ setSize()

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

Set the new size of the widget.

Reimplemented from YWidget.

◆ setTimeout()

void YQBusyIndicator::setTimeout ( int newTimeout)
virtual

Set the timeout is ms after that the widget shows 'stalled' when no new tick is received.

Reimplemented from YBusyIndicator.

◆ timeout()

int YQBusyIndicator::timeout ( ) const
inline

Return the timeout is ms after that the widget shows 'stalled' when no new tick is received.

Reimplemented from YBusyIndicator.


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