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  * 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  KComboBox *editField();
28 
29 protected:
30  QLabel *m_label;
31  QLabel *m_postLabel;
32  KComboBox *m_editField;
33 };
34 
35 #endif // COMBOBOXWIDGETBASE_H
Definition: comboboxwidgetbase.h:21
QLabel * m_label
Definition: comboboxwidgetbase.h:30
KComboBox * m_editField
Definition: comboboxwidgetbase.h:32
ComboBoxWidgetBase(const QString &title, const QString &postLabel=QString(), QWidget *parent=nullptr)
Definition: comboboxwidgetbase.cpp:18
QLabel * m_postLabel
Definition: comboboxwidgetbase.h:31
void addToLayout(QGridLayout *layout, int row, int startColumn=0)
Definition: comboboxwidgetbase.cpp:59
KComboBox * editField()
Definition: comboboxwidgetbase.cpp:47