rssguard/src/librssguard/gui/reusable/comboboxwithstatus.cpp
2021-05-07 07:25:53 +02:00

21 lines
577 B
C++
Executable file

// For license of this file, see <project-root-folder>/LICENSE.md.
#include "gui/reusable/comboboxwithstatus.h"
#include "gui/reusable/plaintoolbutton.h"
#include <QHBoxLayout>
ComboBoxWithStatus::ComboBoxWithStatus(QWidget* parent)
: WidgetWithStatus(parent) {
m_wdgInput = new QComboBox(this);
// Set correct size for the tool button.
const 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);
}