BuildmLearn Toolkit  2.0.4
BuildmLearn Toolkit is an easy-to-use program that helps users make mobile apps without any knowledge of application development.
 All Classes Functions Enumerations Groups Pages
LabelWithStatus Class Reference

Iconified label widget. More...

#include <labelwithstatus.h>

Collaboration diagram for LabelWithStatus:
Collaboration graph

Public Member Functions

 LabelWithStatus (QWidget *parent=0)
 Constructor.
 
void setStatus (StatusType status, const QString &label_text, const QString &status_text)
 Sets new status. More...
 
QLabel * label () const
 Access to label. More...
 
- Public Member Functions inherited from WidgetWithStatus
 WidgetWithStatus (QWidget *parent)
 
void setStatus (StatusType status, const QString &tooltip_text)
 Sets custom status for this control. More...
 
StatusType status () const
 Access to current status of the widget. More...
 

Additional Inherited Members

- Public Types inherited from WidgetWithStatus
enum  StatusType { Information, Warning, Error, Ok }
 Specifies type of status icon.
 
- Protected Attributes inherited from WidgetWithStatus
StatusType m_status
 
QWidget * m_wdgInput
 
PlainToolButtonm_btnStatus
 
QHBoxLayout * m_layout
 
QIcon m_iconInformation
 
QIcon m_iconWarning
 
QIcon m_iconError
 
QIcon m_iconOk
 

Detailed Description

Iconified label widget.

Definition at line 40 of file labelwithstatus.h.

Member Function Documentation

QLabel* LabelWithStatus::label ( ) const
inline

Access to label.

Returns
Returns pointer to label of the widget.

Definition at line 58 of file labelwithstatus.h.

58  {
59  return static_cast<QLabel*>(m_wdgInput);
60  }

Here is the caller graph for this function:

void LabelWithStatus::setStatus ( WidgetWithStatus::StatusType  status,
const QString &  label_text,
const QString &  status_text 
)

Sets new status.

Parameters
statusNew status to set.
label_textText to be visible in the label.
status_textText to be visible in the tooltip of the icon.

Definition at line 54 of file labelwithstatus.cpp.

56  {
57  WidgetWithStatus::setStatus(status, status_text);
58  label()->setText(label_text);
59  label()->setToolTip(status_text);
60 }
void setStatus(StatusType status, const QString &tooltip_text)
Sets custom status for this control.
StatusType status() const
Access to current status of the widget.
QLabel * label() const
Access to label.

Here is the call graph for this function:


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