umbrello  2.32.3
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
umlobjectnamewidget.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) 2002-2020 *
8  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9  ***************************************************************************/
10 
11 #ifndef UMLOBJECTNAMEWIDGET_H
12 #define UMLOBJECTNAMEWIDGET_H
13 
14 #include <QWidget>
15 
16 class KLineEdit;
17 
18 class QGridLayout;
19 class QLabel;
20 
21 class UMLObjectNameWidget : public QWidget
22 {
23 public:
24  UMLObjectNameWidget(const QString &label, const QString &text, QWidget *parent=0);
26 
27  void addToLayout(QGridLayout *layout, int row);
28  QString text();
29  void reset();
30 
31 protected:
32  QLabel *m_label;
33  KLineEdit *m_editField;
34  QString m_text;
35 };
36 
37 #endif // UMLOBJECTNAMEWIDGET_H
UMLObjectNameWidget::m_label
QLabel * m_label
Definition: umlobjectnamewidget.h:32
UMLObjectNameWidget::addToLayout
void addToLayout(QGridLayout *layout, int row)
Definition: umlobjectnamewidget.cpp:50
UMLObjectNameWidget::~UMLObjectNameWidget
~UMLObjectNameWidget()
Definition: umlobjectnamewidget.cpp:38
UMLObjectNameWidget::m_editField
KLineEdit * m_editField
Definition: umlobjectnamewidget.h:33
UMLObjectNameWidget::m_text
QString m_text
Definition: umlobjectnamewidget.h:34
umlobjectnamewidget.h
UMLObjectNameWidget::reset
void reset()
Definition: umlobjectnamewidget.cpp:61
UMLObjectNameWidget
Definition: umlobjectnamewidget.h:22
UMLObjectNameWidget::UMLObjectNameWidget
UMLObjectNameWidget(const QString &label, const QString &text, QWidget *parent=0)
Definition: umlobjectnamewidget.cpp:20
UMLObjectNameWidget::text
QString text()
Definition: umlobjectnamewidget.cpp:56