Debian Codegraph @

src/librssguard/gui/reusable/comboboxwithstatus.cpp

raw symbols SCIP
1 // For license of this file, see <project-root-folder>/LICENSE.md.
2
3 #include "gui/reusable/comboboxwithstatus.h"
4
5 #include "gui/reusable/plaintoolbutton.h"
6
7 #include <QHBoxLayout>
8
9 ComboBoxWithStatus::ComboBoxWithStatus(QWidget* parent) : WidgetWithStatus(parent) {
10 m_wdgInput = new QComboBox(this);
11
12 // Set correct size for the tool button.
13 const int txt_input_height = m_wdgInput->sizeHint().height();
14
15 m_btnStatus->setFixedSize(txt_input_height, txt_input_height);
16
17 // Compose the layout.
18 m_layout->addWidget(m_wdgInput);
19 m_layout->addWidget(m_btnStatus);
20 }