umbrello: umbrello/dialogs/widgets/comboboxwidgetbase.h Source File

umbrello 2.32.1 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

comboboxwidgetbase.h
Go to the documentation of this file.
1 /*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2019-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4 */
5
6 #ifndef COMBOBOXWIDGETBASE_H
7 #define COMBOBOXWIDGETBASE_H
8
9 #include <QWidget>
10
11 class KComboBox;
12 class QGridLayout;
13 class QLabel;
14
15 class ComboBoxWidgetBase : public QWidget
16 {
17 Q_OBJECT
18 public:
19 explicit ComboBoxWidgetBase(const QString &title, const QString &postLabel = QString(), QWidget *parent = nullptr);
20 void addToLayout(QGridLayout *layout, int row, int startColumn = 0);
21
22 KComboBox *editField();
23
24 protected:
25 QLabel *m_label;
26 QLabel *m_postLabel;
27 KComboBox *m_editField;
28 };
29
30 #endif // COMBOBOXWIDGETBASE_H
ComboBoxWidgetBase
Definition: comboboxwidgetbase.h:16
ComboBoxWidgetBase::m_label
QLabel * m_label
Definition: comboboxwidgetbase.h:25
ComboBoxWidgetBase::m_editField
KComboBox * m_editField
Definition: comboboxwidgetbase.h:27
ComboBoxWidgetBase::ComboBoxWidgetBase
ComboBoxWidgetBase(const QString &title, const QString &postLabel=QString(), QWidget *parent=nullptr)
Definition: comboboxwidgetbase.cpp:13
ComboBoxWidgetBase::m_postLabel
QLabel * m_postLabel
Definition: comboboxwidgetbase.h:26
ComboBoxWidgetBase::addToLayout
void addToLayout(QGridLayout *layout, int row, int startColumn=0)
Definition: comboboxwidgetbase.cpp:54
ComboBoxWidgetBase::editField
KComboBox * editField()
Definition: comboboxwidgetbase.cpp:42