31 #include "gui/labelwithstatus.h"
33 #include "gui/plaintoolbutton.h"
35 #include <QHBoxLayout>
40 m_wdgInput =
new QLabel(
this);
43 int label_height = m_wdgInput->sizeHint().height();
44 m_btnStatus->setFixedSize(label_height, label_height);
47 m_layout->addWidget(m_wdgInput);
48 m_layout->addWidget(m_btnStatus);
51 LabelWithStatus::~LabelWithStatus() {
55 const QString &label_text,
56 const QString &status_text) {
58 label()->setText(label_text);
59 label()->setToolTip(status_text);
LabelWithStatus(QWidget *parent=0)
Constructor.
void setStatus(StatusType status, const QString &label_text, const QString &status_text)
Sets new status.
QLabel * label() const
Access to label.