umbrello 2.39.2 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

umlobjectnamewidget.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef UMLOBJECTNAMEWIDGET_H
7#define UMLOBJECTNAMEWIDGET_H
8
9#include <QWidget>
10
11 class QLineEdit;
12
13 class QGridLayout;
14 class QLabel;
15
16 class UMLObjectNameWidget : public QWidget
17{
18 public:
19 UMLObjectNameWidget(const QString &label, const QString &text, QWidget *parent=0);
20 ~UMLObjectNameWidget();
21
22 void addToLayout(QGridLayout *layout, int row);
23 QString text();
24 void reset();
25
26 protected:
27 QLabel *m_label;
28 QLineEdit *m_editField;
29 QString m_text;
30};
31
32#endif // UMLOBJECTNAMEWIDGET_H
UMLObjectNameWidget
Definition umlobjectnamewidget.h:17
UMLObjectNameWidget::reset
void reset()
Definition umlobjectnamewidget.cpp:56
UMLObjectNameWidget::~UMLObjectNameWidget
~UMLObjectNameWidget()
Definition umlobjectnamewidget.cpp:33
UMLObjectNameWidget::m_editField
QLineEdit * m_editField
Definition umlobjectnamewidget.h:28
UMLObjectNameWidget::UMLObjectNameWidget
UMLObjectNameWidget(const QString &label, const QString &text, QWidget *parent=0)
Definition umlobjectnamewidget.cpp:15
UMLObjectNameWidget::m_label
QLabel * m_label
Definition umlobjectnamewidget.h:27
UMLObjectNameWidget::text
QString text()
Definition umlobjectnamewidget.cpp:51
UMLObjectNameWidget::m_text
QString m_text
Definition umlobjectnamewidget.h:29
UMLObjectNameWidget::addToLayout
void addToLayout(QGridLayout *layout, int row)
Definition umlobjectnamewidget.cpp:45