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

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

- Main Page
- Related Pages
- Topics
- Namespaces
- Classes
- Files

- File List
- File Members

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
15 class 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
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:51
ComboBoxWidgetBase::editField
KComboBox * editField()
Definition comboboxwidgetbase.cpp:39