[PATCH] Fix incomplete type 'UMLDoc::DiagramsMap {aka QMap >}

ralf.habacker at freenet.de ralf.habacker at freenet.de
Wed May 29 19:29:13 BST 2019


Hi Jean-Christian, 

thanks for this patch.
With which Qt5 version does this happen ?RegardsRalf

> -----Ursprüngliche Nachricht-----
> Von: Jean-Christian de Rivaz 
> Gesendet: Mi. 29.05.2019 16:08
> An: umbrello-devel at kde.org
> Betreff: [PATCH] Fix incomplete type 'UMLDoc::DiagramsMap {aka QMap >}
>
> Hello, while compiling master branch on Debian stretch I need the patch
> below.
> Best Regards.
> Jean-Christian
>
> commit 6095c60ec9760833534231603f59fce93a5e9861
> Author: Jean-Christian de Rivaz 
> Date:   Wed May 29 16:00:42 2019 +0200
>
>     Fix incomplete type 'UMLDoc::DiagramsMap {aka QMap QList >}
>    
>     A missing #include  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 >}'
>          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 QList >}'
>      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 
>
> 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 
>  #endif
> +#include 
>  
>  // system includes
>  #include 
>
>
>
> -----Ursprüngliche Nachricht Ende-----










More information about the umbrello-devel mailing list