24 lines
556 B
C++
24 lines
556 B
C++
|
#include "gui/comboboxwithstatus.h"
|
||
|
|
||
|
#include "gui/plaintoolbutton.h"
|
||
|
|
||
|
#include <QHBoxLayout>
|
||
|
|
||
|
|
||
|
ComboBoxWithStatus::ComboBoxWithStatus(QWidget *parent)
|
||
|
: WidgetWithStatus(parent) {
|
||
|
m_wdgInput = new QComboBox(this);
|
||
|
|
||
|
// Set correct size for the tool button.
|
||
|
int txt_input_height = m_wdgInput->sizeHint().height();
|
||
|
m_btnStatus->setFixedSize(txt_input_height, txt_input_height);
|
||
|
|
||
|
// Compose the layout.
|
||
|
m_layout->addWidget(m_wdgInput);
|
||
|
m_layout->addWidget(m_btnStatus);
|
||
|
}
|
||
|
|
||
|
ComboBoxWithStatus::~ComboBoxWithStatus() {
|
||
|
|
||
|
}
|