[PATCH] Fix incomplete type 'UMLDoc::DiagramsMap {aka QMap<UMLFolder*, QList<QDomNode> >}
Jean-Christian de Rivaz
jean-christian.derivaz at innodelec.ch
Wed May 29 15:08:11 BST 2019
Hello, while compiling master branch on Debian stretch I need the patch
below.
Best Regards.
Jean-Christian
commit 6095c60ec9760833534231603f59fce93a5e9861
Author: Jean-Christian de Rivaz <jcamdr70 at gmail.com>
Date: Wed May 29 16:00:42 2019 +0200
Fix incomplete type 'UMLDoc::DiagramsMap {aka QMap<UMLFolder*,
QList<QDomNode> >}
A missing #include <QMap> cause this error:
In file included from
/home/jcdr/work/umbrello/umbrello/uml1model/entityconstraint.cpp:16:0:
/home/jcdr/work/umbrello/umbrello/umldoc.h:353:17: error: field
'm_diagramsToLoad' has incomplete type 'UMLDoc::DiagramsMap {aka
QMap<UMLFolder*, QList<QDomNode> >}'
DiagramsMap m_diagramsToLoad;
^~~~~~~~~~~~~~~~
In file included from
/usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:1139:0,
from
/usr/include/x86_64-linux-gnu/qt5/QtGui/qwindowdefs.h:43,
from
/usr/include/x86_64-linux-gnu/qt5/QtGui/qfont.h:43,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/QFont:1,
from /home/jcdr/work/umbrello/umbrello/basictypes.h:24,
from
/home/jcdr/work/umbrello/umbrello/uml1model/entityconstraint.h:14,
from
/home/jcdr/work/umbrello/umbrello/uml1model/entityconstraint.cpp:12:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qtypeinfo.h:216:1: note:
declaration of 'UMLDoc::DiagramsMap {aka class QMap<UMLFolder*,
QList<QDomNode> >}'
Q_DECLARE_MOVABLE_CONTAINER(QMap);
^
umbrello/CMakeFiles/libumbrello.dir/build.make:6190: recipe for
target
'umbrello/CMakeFiles/libumbrello.dir/uml1model/entityconstraint.cpp.o'
failed
Signed-off-by: Jean-Christian de Rivaz <jcamdr70 at gmail.com>
diff --git a/umbrello/umldoc.h b/umbrello/umldoc.h
index 13422fe0b..1997329c0 100644
--- a/umbrello/umldoc.h
+++ b/umbrello/umldoc.h
@@ -32,6 +32,7 @@
#if QT_VERSION >= 0x050000
#include <QUrl>
#endif
+#include <QMap>
// system includes
#include <typeinfo>
More information about the umbrello-devel
mailing list