umbrello: umbrello/dialogs/widgets/defaultvaluewidget.h Source File

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

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
11class UMLObject;
12
13class QGridLayout;
14class QString;
15
25 class DefaultValueWidget : public QWidget
26{
27 Q_OBJECT
28public:
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
36public slots:
37 void setType(UMLObject *type);
38 void setType(const QString &type);
39
40protected:
41 void showEvent(QShowEvent *event);
42 void hideEvent(QHideEvent *event);
43
44private:
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:45
DefaultValueWidget::showEvent
void showEvent(QShowEvent *event)
Definition: defaultvaluewidget.cpp:170
DefaultValueWidget::DefaultValueWidget
DefaultValueWidget(UMLObject *type, const QString &value, QWidget *parent=nullptr)
Definition: defaultvaluewidget.cpp:102
DefaultValueWidget::setType
void setType(UMLObject *type)
Definition: defaultvaluewidget.cpp:118
UMLObject
The base class for UML objects.
Definition: umlobject.h:70