umbrello 2.32.3 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 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2019-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef COMBOBOXWIDGETBASE_H
12 #define COMBOBOXWIDGETBASE_H
13
14 #include <QWidget>
15
16 class KComboBox;
17 class QGridLayout;
18 class QLabel;
19
20 class ComboBoxWidgetBase : public QWidget
21 {
22 Q_OBJECT
23 public:
24 explicit ComboBoxWidgetBase(const QString &title, const QString &postLabel = QString(), QWidget *parent = nullptr);
25 void addToLayout(QGridLayout *layout, int row, int startColumn = 0);
26
27 protected:
28 QLabel *m_label;
29 QLabel *m_postLabel;
30 KComboBox *m_editField;
31 };
32
33 #endif // COMBOBOXWIDGETBASE_H
ComboBoxWidgetBase::ComboBoxWidgetBase
ComboBoxWidgetBase(const QString &title, const QString &postLabel=QString(), QWidget *parent=nullptr)
Definition: comboboxwidgetbase.cpp:18
ComboBoxWidgetBase::m_label
QLabel * m_label
Definition: comboboxwidgetbase.h:28
ComboBoxWidgetBase
Definition: comboboxwidgetbase.h:21
ComboBoxWidgetBase::addToLayout
void addToLayout(QGridLayout *layout, int row, int startColumn=0)
Definition: comboboxwidgetbase.cpp:51
ComboBoxWidgetBase::m_postLabel
QLabel * m_postLabel
Definition: comboboxwidgetbase.h:29
ComboBoxWidgetBase::m_editField
KComboBox * m_editField
Definition: comboboxwidgetbase.h:30
comboboxwidgetbase.h