umbrello  2.39.2
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
Definition: comboboxwidgetbase.h:16
QLabel * m_label
Definition: comboboxwidgetbase.h:25
KComboBox * m_editField
Definition: comboboxwidgetbase.h:27
ComboBoxWidgetBase(const QString &title, const QString &postLabel=QString(), QWidget *parent=nullptr)
Definition: comboboxwidgetbase.cpp:13
QLabel * m_postLabel
Definition: comboboxwidgetbase.h:26
void addToLayout(QGridLayout *layout, int row, int startColumn=0)
Definition: comboboxwidgetbase.cpp:51
KComboBox * editField()
Definition: comboboxwidgetbase.cpp:39