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

Building with Qt 5.15.2 fails due to missing #include <QPainterPath> in src/plugins/editor/editorplane.cpp #13

Open
Sturwandan opened this issue Jun 24, 2021 · 2 comments

Comments

@Sturwandan
Copy link

Attempt to build the official source from https://git.niisi.ru/kumir/kumir2 fails when using -DUSE_QT=5 option with following error and multiple deprecated declaration warnings:

./src/plugins/editor/editorplane.cpp: In member function ‘void Editor::EditorPlane::paintLockSymbol(QPainter*, bool, const QRect&)’:
./src/plugins/editor/editorplane.cpp:2392:15: error: aggregate ‘QPainterPath path’ has incomplete type and cannot be defined
 2392 |  QPainterPath path;
      |               ^~~~

Thanks to thestr4ng3r/chiaki#253 I was able to locate the problem and fix it with:

diff --git a/src/plugins/editor/editorplane.cpp b/src/plugins/editor/editorplane.cpp
--- a/src/plugins/editor/editorplane.cpp
+++ b/src/plugins/editor/editorplane.cpp
@@ -16,6 +16,7 @@
 #include <QApplication>
 #include <QScrollBar>
 #include <QPainter>
+#include <QPainterPath>
 #include <QContextMenuEvent>
 #include <QMouseEvent>
 #include <QDrag>

After this trivial change, the build finished and the program started.

@EinstokFair
Copy link

Ай хэв зе сейм ишшью.

a-a-maly added a commit that referenced this issue Jun 29, 2021
@a-a-maly
Copy link
Owner

A bit strange that the issue happened only for editorplane.cpp and did not happen for src/actors/turtle.
Should be fixed by commit 426724f.

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

No branches or pull requests

3 participants