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

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

- File List
- File Members

defaultvaluewidget.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2018-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef DEFAULTVALUEWIDGET_H
7#define DEFAULTVALUEWIDGET_H
8
9#include <QWidget>
10
11 class UMLObject;
12
13 class QGridLayout;
14 class QString;
15
25 class DefaultValueWidget : public QWidget
26{
27 Q_OBJECT
28 public:
29 explicit DefaultValueWidget(UMLObject *type, const QString &value, QWidget *parent = nullptr);
30 ~DefaultValueWidget();
31
32 void addToLayout(QGridLayout *layout, int row);
33
34 QString value() const;
35
36 public Q_SLOTS:
37 void setType(UMLObject *type);
38 void setType(const QString &type);
39
40 protected:
41 void showEvent(QShowEvent *event);
42 void hideEvent(QHideEvent *event);
43
44 private:
45 class Private;
46 Private *m_d;
47};
48
49#endif // DEFAULTVALUEWIDGET_H
DefaultValueWidget::Private
Definition: defaultvaluewidget.cpp:20
DefaultValueWidget
Definition: defaultvaluewidget.h:26
DefaultValueWidget::value
QString value() const
Definition: defaultvaluewidget.cpp:159
DefaultValueWidget::hideEvent
void hideEvent(QHideEvent *event)
Definition: defaultvaluewidget.cpp:182
DefaultValueWidget::~DefaultValueWidget
~DefaultValueWidget()
Definition: defaultvaluewidget.cpp:108
DefaultValueWidget::addToLayout
void addToLayout(QGridLayout *layout, int row)
Definition: defaultvaluewidget.cpp:148
DefaultValueWidget::m_d
Private * m_d
Definition: defaultvaluewidget.h:46
DefaultValueWidget::showEvent
void showEvent(QShowEvent *event)
Definition: defaultvaluewidget.cpp:170
DefaultValueWidget::setType
void setType(UMLObject *type)
Definition: defaultvaluewidget.cpp:118
UMLObject
The base class for UML objects.
Definition: umlobject.h:70