| 1 | // For license of this file, see <project-root-folder>/LICENSE.md.cxx . . $ `<file>/src/librssguard/gui/reusable/lineeditwithstatus.cpp`/ |
| 2 | |
| 3 | #include "gui/reusable/lineeditwithstatus.h"cxx . . $ `<file>/src/librssguard/gui/reusable/lineeditwithstatus.h`/ |
| 4 | |
| 5 | #include "gui/reusable/baselineedit.h"cxx . . $ `<file>/src/librssguard/gui/reusable/baselineedit.h`/ |
| 6 | #include "gui/reusable/plaintoolbutton.h"cxx . . $ `<file>/src/librssguard/gui/reusable/plaintoolbutton.h`/ |
| 7 | |
| 8 | #include <QHBoxLayout> |
| 9 | |
| 10 | LineEditWithStatuscxx . . $ LineEditWithStatus#::LineEditWithStatuscxx . . $ LineEditWithStatus#LineEditWithStatus(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget#* parent) : WidgetWithStatuscxx . . $ WidgetWithStatus#(parent) { |
| 11 | m_wdgInputcxx . . $ WidgetWithStatus#m_wdgInput. = new BaseLineEditcxx . . $ BaseLineEdit#(this); |
| 12 | setFocusProxycxx . . $ QWidget#setFocusProxy(108f35f7aa7f3cf9).(m_wdgInputcxx . . $ WidgetWithStatus#m_wdgInput.); |
| 13 | |
| 14 | // Set correct size for the tool button. |
| 15 | const int txt_input_height = m_wdgInputcxx . . $ WidgetWithStatus#m_wdgInput.->sizeHintcxx . . $ QWidget#sizeHint(4b3b776e5ee2b367).().heightcxx . . $ QSize#height(ea6fe5115c70a13f).(); |
| 16 | |
| 17 | m_btnStatuscxx . . $ WidgetWithStatus#m_btnStatus.->setFixedSizecxx . . $ QWidget#setFixedSize(3e454b8ccf442868).(txt_input_height, txt_input_height); |
| 18 | |
| 19 | // Compose the layout. |
| 20 | m_layoutcxx . . $ WidgetWithStatus#m_layout.->addWidgetcxx . . $ QBoxLayout#addWidget(d39963fa34d6acb).(m_wdgInputcxx . . $ WidgetWithStatus#m_wdgInput.); |
| 21 | m_layoutcxx . . $ WidgetWithStatus#m_layout.->addWidgetcxx . . $ QBoxLayout#addWidget(d39963fa34d6acb).(m_btnStatuscxx . . $ WidgetWithStatus#m_btnStatus.); |
| 22 | } |
| 23 | |
| 24 | TextEditWithStatuscxx . . $ TextEditWithStatus#::TextEditWithStatuscxx . . $ TextEditWithStatus#TextEditWithStatus(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget#* parent) : WidgetWithStatuscxx . . $ WidgetWithStatus#(parent) { |
| 25 | m_wdgInputcxx . . $ WidgetWithStatus#m_wdgInput. = new QPlainTextEditcxx . . $ QPlainTextEdit#(this); |
| 26 | setFocusProxycxx . . $ QWidget#setFocusProxy(108f35f7aa7f3cf9).(m_wdgInputcxx . . $ WidgetWithStatus#m_wdgInput.); |
| 27 | |
| 28 | // Set correct size for the tool button. |
| 29 | const int txt_input_height = QLineEditcxx . . $ QLineEdit#QLineEdit(108f35f7aa7f3cf9).().sizeHintcxx . . $ QLineEdit#sizeHint(4b3b776e5ee2b367).().heightcxx . . $ QSize#height(ea6fe5115c70a13f).(); |
| 30 | |
| 31 | m_btnStatuscxx . . $ WidgetWithStatus#m_btnStatus.->setFixedSizecxx . . $ QWidget#setFixedSize(3e454b8ccf442868).(txt_input_height, txt_input_height); |
| 32 | |
| 33 | // Compose the layout. |
| 34 | m_layoutcxx . . $ WidgetWithStatus#m_layout.->addWidgetcxx . . $ QBoxLayout#addWidget(d39963fa34d6acb).(m_wdgInputcxx . . $ WidgetWithStatus#m_wdgInput.); |
| 35 | m_layoutcxx . . $ WidgetWithStatus#m_layout.->addWidgetcxx . . $ QBoxLayout#addWidget(d39963fa34d6acb).(m_btnStatuscxx . . $ WidgetWithStatus#m_btnStatus.); |
| 36 | } |