Source: deepin-screenshot Version: 5.0.0-1 Severity: important Tags: ftbfs User: [email protected] Usertags: qt5.15 Control: block 972278 by -1
Dear Maintainer,
deepin-screenshot fails to build with Qt 5.15, currently available in
experimental.
After building a fixed version of dtkwidget (see #972155), I get this error:
/<<PKGBUILDDIR>>/src/widgets/shapeswidget.cpp: In member function ‘void
ShapesWidget::paintRect(QPainter&, FourPoints, int,
ShapesWidget::ShapeBlurStatus, bool, bool)’:
/<<PKGBUILDDIR>>/src/widgets/shapeswidget.cpp:1262:18: error: aggregate
‘QPainterPath rectPath’ has incomplete type and cannot be defined
1262 | QPainterPath rectPath;
| ^~~~~~~~
/<<PKGBUILDDIR>>/src/widgets/shapeswidget.cpp: In member function ‘void
ShapesWidget::paintEllipse(QPainter&, FourPoints, int,
ShapesWidget::ShapeBlurStatus, bool, bool)’:
/<<PKGBUILDDIR>>/src/widgets/shapeswidget.cpp:1300:18: error: aggregate
‘QPainterPath ellipsePath’ has incomplete type and cannot be defined
1300 | QPainterPath ellipsePath;
| ^~~~~~~~~~~
/<<PKGBUILDDIR>>/src/widgets/shapeswidget.cpp: In member function ‘void
ShapesWidget::paintArrow(QPainter&, QList<QPointF>, int, bool)’:
/<<PKGBUILDDIR>>/src/widgets/shapeswidget.cpp:1328:26: error: aggregate
‘QPainterPath path’ has incomplete type and cannot be defined
1328 | QPainterPath path;
| ^~~~
/<<PKGBUILDDIR>>/src/widgets/shapeswidget.cpp: In member function ‘void
ShapesWidget::paintLine(QPainter&, QList<QPointF>)’:
/<<PKGBUILDDIR>>/src/widgets/shapeswidget.cpp:1346:18: error: aggregate
‘QPainterPath linePaths’ has incomplete type and cannot be defined
1346 | QPainterPath linePaths;
| ^~~~~~~~~
Adding #include <QPainterPath> should fix it.
--
Dmitry Shachnev
signature.asc
Description: PGP signature

