| 1 | // For license of this file, see <project-root-folder>/LICENSE.md.cxx . . $ `<file>/src/librssguard/gui/reusable/comboboxwithstatus.cpp`/ |
| 2 | |
| 3 | #include "gui/reusable/comboboxwithstatus.h"cxx . . $ `<file>/src/librssguard/gui/reusable/comboboxwithstatus.h`/ |
| 4 | |
| 5 | #include "gui/reusable/plaintoolbutton.h"cxx . . $ `<file>/src/librssguard/gui/reusable/plaintoolbutton.h`/ |
| 6 | |
| 7 | #include <QHBoxLayout> |
| 8 | |
| 9 | ComboBoxWithStatuscxx . . $ ComboBoxWithStatus#::ComboBoxWithStatuscxx . . $ ComboBoxWithStatus#ComboBoxWithStatus(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget#* parent) : WidgetWithStatuscxx . . $ WidgetWithStatus#(parent) { |
| 10 | m_wdgInputcxx . . $ WidgetWithStatus#m_wdgInput. = new QComboBoxcxx . . $ QComboBox#(this); |
| 11 | |
| 12 | // Set correct size for the tool button. |
| 13 | const int txt_input_height = m_wdgInputcxx . . $ WidgetWithStatus#m_wdgInput.->sizeHintcxx . . $ QWidget#sizeHint(4b3b776e5ee2b367).().heightcxx . . $ QSize#height(ea6fe5115c70a13f).(); |
| 14 | |
| 15 | m_btnStatuscxx . . $ WidgetWithStatus#m_btnStatus.->setFixedSizecxx . . $ QWidget#setFixedSize(3e454b8ccf442868).(txt_input_height, txt_input_height); |
| 16 | |
| 17 | // Compose the layout. |
| 18 | m_layoutcxx . . $ WidgetWithStatus#m_layout.->addWidgetcxx . . $ QBoxLayout#addWidget(d39963fa34d6acb).(m_wdgInputcxx . . $ WidgetWithStatus#m_wdgInput.); |
| 19 | m_layoutcxx . . $ WidgetWithStatus#m_layout.->addWidgetcxx . . $ QBoxLayout#addWidget(d39963fa34d6acb).(m_btnStatuscxx . . $ WidgetWithStatus#m_btnStatus.); |
| 20 | } |