summaryrefslogtreecommitdiffstats
path: root/src/uml/qumlmodel.cpp
diff options
context:
space:
mode:
authorSandro S. Andrade <sandroandrade@kde.org>2013-08-25 21:01:35 -0300
committerSandro S. Andrade <sandroandrade@kde.org>2013-08-26 02:01:03 +0200
commit5392c0a8ce5545783c86d830e8c321d487538613 (patch)
treec62cf41f3bb917f5767c9f09d94395d644538fad /src/uml/qumlmodel.cpp
parent1c770ad764a39ce0ad40913c1c4bd72bd43710a9 (diff)
Add dpointer-free UML metamodel implementation
- UML metamodel isn't likely to have changes, therefore we can get rid of d-pointer and private classes Change-Id: Id61fd25b965da5ed920e863d047e40ec293c106a Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'src/uml/qumlmodel.cpp')
-rw-r--r--src/uml/qumlmodel.cpp20
1 files changed, 4 insertions, 16 deletions
diff --git a/src/uml/qumlmodel.cpp b/src/uml/qumlmodel.cpp
index 4adb13c6..d9a0e186 100644
--- a/src/uml/qumlmodel.cpp
+++ b/src/uml/qumlmodel.cpp
@@ -39,14 +39,9 @@
**
****************************************************************************/
#include "qumlmodel.h"
-#include "qumlmodel_p.h"
QT_BEGIN_NAMESPACE
-QUmlModelPrivate::QUmlModelPrivate()
-{
-}
-
/*!
\class QUmlModel
@@ -55,13 +50,8 @@ QUmlModelPrivate::QUmlModelPrivate()
\brief A model captures a view of a physical system. It is an abstraction of the physical system, with a certain purpose. This purpose determines what is to be included in the model and what is irrelevant. Thus the model completely describes those aspects of the physical system that are relevant to the purpose of the model, at the appropriate level of detail.
*/
-QUmlModel::QUmlModel(bool create_d_ptr) :
- QUmlElement(false),
- QUmlNamedElement(false),
- QUmlPackage(false)
+QUmlModel::QUmlModel()
{
- if (create_d_ptr)
- set_d_ptr(new QUmlModelPrivate);
}
// OWNED ATTRIBUTES
@@ -73,17 +63,15 @@ QString QUmlModel::viewpoint() const
{
// This is a read-write property
- QM_D(const QUmlModel);
- return d->viewpoint;
+ return _viewpoint;
}
void QUmlModel::setViewpoint(QString viewpoint)
{
// This is a read-write property
- QM_D(QUmlModel);
- if (d->viewpoint != viewpoint) {
- d->viewpoint = viewpoint;
+ if (_viewpoint != viewpoint) {
+ _viewpoint = viewpoint;
}
}