umbrello 2.38.4
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
11class KComboBox;
12class QGridLayout;
13class QLabel;
14
15class ComboBoxWidgetBase : public QWidget
16{
17 Q_OBJECT
18public:
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
24protected:
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
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