include QPainterPath to fix compile error with Qt 5.15 #19144

pull puchu wants to merge 1 commits into bitcoin:0.20 from puchu:0.20 changing 1 files +1 −0
  1. puchu commented at 9:32 PM on June 2, 2020: contributor

    include QPainterPath to fix compile error with Qt 5.15

  2. include QPainterPath to fix compile error with Qt 5.15 d725859f77
  3. puchu commented at 9:34 PM on June 2, 2020: contributor

    compile error is:

    qt/trafficgraphwidget.cpp: In member function ‘void TrafficGraphWidget::paintPath(QPainterPath&, QQueue<float>&)’:
    qt/trafficgraphwidget.cpp:55:9: error: invalid use of incomplete type ‘class QPainterPath’
       55 |         path.moveTo(x, YMARGIN + h);
          |         ^~~~
    In file included from /usr/include/qt5/QtGui/qbrush.h:49,
                     from /usr/include/qt5/QtGui/qpalette.h:46,
                     from /usr/include/qt5/QtWidgets/qwidget.h:48,
                     from /usr/include/qt5/QtWidgets/QWidget:1,
                     from ./qt/trafficgraphwidget.h:8,
                     from qt/trafficgraphwidget.cpp:6:
    /usr/include/qt5/QtGui/qmatrix.h:54:7: note: forward declaration of ‘class QPainterPath’
       54 | class QPainterPath;
          |       ^~~~~~~~~~~~
    qt/trafficgraphwidget.cpp:59:13: error: invalid use of incomplete type ‘class QPainterPath’
       59 |             path.lineTo(x, y);
          |             ^~~~
    In file included from /usr/include/qt5/QtGui/qbrush.h:49,
                     from /usr/include/qt5/QtGui/qpalette.h:46,
                     from /usr/include/qt5/QtWidgets/qwidget.h:48,
                     from /usr/include/qt5/QtWidgets/QWidget:1,
                     from ./qt/trafficgraphwidget.h:8,
                     from qt/trafficgraphwidget.cpp:6:
    /usr/include/qt5/QtGui/qmatrix.h:54:7: note: forward declaration of ‘class QPainterPath’
       54 | class QPainterPath;
          |       ^~~~~~~~~~~~
    qt/trafficgraphwidget.cpp:61:9: error: invalid use of incomplete type ‘class QPainterPath’
       61 |         path.lineTo(x, YMARGIN + h);
          |         ^~~~
    In file included from /usr/include/qt5/QtGui/qbrush.h:49,
                     from /usr/include/qt5/QtGui/qpalette.h:46,
                     from /usr/include/qt5/QtWidgets/qwidget.h:48,
                     from /usr/include/qt5/QtWidgets/QWidget:1,
                     from ./qt/trafficgraphwidget.h:8,
                     from qt/trafficgraphwidget.cpp:6:
    /usr/include/qt5/QtGui/qmatrix.h:54:7: note: forward declaration of ‘class QPainterPath’
       54 | class QPainterPath;
          |       ^~~~~~~~~~~~
    qt/trafficgraphwidget.cpp: In member function ‘virtual void TrafficGraphWidget::paintEvent(QPaintEvent*)’:
    qt/trafficgraphwidget.cpp:109:22: error: aggregate ‘QPainterPath p’ has incomplete type and cannot be defined
      109 |         QPainterPath p;
          |                      ^
    qt/trafficgraphwidget.cpp:116:22: error: aggregate ‘QPainterPath p’ has incomplete type and cannot be defined
      116 |         QPainterPath p;
          |                      ^
    
  4. promag commented at 9:37 PM on June 2, 2020: member

    You should backport #19097 instead.

  5. puchu commented at 9:38 PM on June 2, 2020: contributor

    thanks, i will give it a try. ;)

    why wasn't this included in the 0.20 tag?

  6. promag commented at 9:41 PM on June 2, 2020: member

    Was set to 0.20.1 milestone.

  7. MarcoFalke commented at 9:57 PM on June 2, 2020: member

    This is part of the group that is tagged for backport: https://github.com/bitcoin/bitcoin/issues?q=label%3A%22Needs+backport+%280.20%29%22+

  8. DrahtBot added the label GUI on Jun 2, 2020
  9. laanwj commented at 3:09 PM on June 4, 2020: member

    If you add the appropriate backporting metadata (see https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#backporting) and copy the author/commit message then you could turn this into a backport of #19097.

  10. MarcoFalke closed this on Jun 4, 2020

  11. promag commented at 10:36 PM on June 4, 2020: member

    @puchu backport done in #19170.

  12. DrahtBot locked this on Feb 15, 2022
Labels

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 21:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me