Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incomplete declaration of QPainterPath #200

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

poke1024
Copy link

Fixes the following error when compling against QT 5.15.1:

In file included from ../../../../src/core/Animators/qrealanimator.h:19,
                 from ../../../../src/core/Expressions/propertybinding.cpp:37:
../../../../src/core/Animators/graphanimator.h:105:22: error: field ‘fPath’ has incomplete type ‘QPainterPath’
  105 |         QPainterPath fPath;
      |                      ^~~~~
In file included from /usr/include/qt/QtGui/qtransform.h:43,
                 from /usr/include/qt/QtGui/qimage.h:48,
                 from /usr/include/qt/QtGui/qpixmap.h:49,
                 from /usr/include/qt/QtGui/qpainter.h:48,
                 from /usr/include/qt/QtGui/QPainter:1,
                 from ../../../../src/core/Properties/../MovablePoints/movablepoint.h:21,
                 from ../../../../src/core/Properties/../MovablePoints/pointshandler.h:19,
                 from ../../../../src/core/Properties/property.h:24,
                 from ../../../../src/core/Expressions/propertybindingbase.h:23,
                 from ../../../../src/core/Expressions/propertybinding.h:20,
                 from ../../../../src/core/Expressions/propertybinding.cpp:17:
/usr/include/qt/QtGui/qmatrix.h:54:7: note: forward declaration of ‘class QPainterPath’
   54 | class QPainterPath;
      |       ^~~~~~~~~~~~
In file included from ../../../../src/core/Animators/qrealanimator.h:19,
                 from ../../../../src/core/Expressions/propertybinding.cpp:37:
../../../../src/core/Animators/graphanimator.h: In member function ‘void GraphAnimator::GraphPath::reset()’:
../../../../src/core/Animators/graphanimator.h:102:45: error: invalid use of incomplete type ‘class QPainterPath’
  102 |         void reset() { fPath = QPainterPath(); }
      |                                             ^
In file included from /usr/include/qt/QtGui/qtransform.h:43,
                 from /usr/include/qt/QtGui/qimage.h:48,
                 from /usr/include/qt/QtGui/qpixmap.h:49,
                 from /usr/include/qt/QtGui/qpainter.h:48,
                 from /usr/include/qt/QtGui/QPainter:1,
                 from ../../../../src/core/Properties/../MovablePoints/movablepoint.h:21,
                 from ../../../../src/core/Properties/../MovablePoints/pointshandler.h:19,
                 from ../../../../src/core/Properties/property.h:24,
                 from ../../../../src/core/Expressions/propertybindingbase.h:23,
                 from ../../../../src/core/Expressions/propertybinding.h:20,
                 from ../../../../src/core/Expressions/propertybinding.cpp:17:
/usr/include/qt/QtGui/qmatrix.h:54:7: note: forward declaration of ‘class QPainterPath’
   54 | class QPainterPath;
      |       ^~~~~~~~~~~~
make[2]: *** [Makefile:10708: propertybinding.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/home/bernhard/git/enve/build/Release/src/core'
make[1]: *** [Makefile:100: sub-core-make_first] Error 2
make[1]: Leaving directory '/home/bernhard/git/enve/build/Release/src'
make: *** [Makefile:47: sub-src-make_first] Error 2

@eszlari
Copy link
Contributor

eszlari commented Mar 5, 2021

@MaurycyLiebner Will you merge this?

@eszlari
Copy link
Contributor

eszlari commented Mar 5, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants