https://bugs.kde.org/show_bug.cgi?id=395248

            Bug ID: 395248
           Summary: Missing qt5 header
           Product: ktorrent
           Version: 5.1
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

ktorrent 5.1.0 build fails with qt 5.11 at the end:

In file included from
/var/uhubuild/work/compile/build/ktorrent/ktorrent_app_autogen/2NRMJ5X7RK/moc_torrentcreatordlg.cpp:9,
                 from
/var/uhubuild/work/compile/build/ktorrent/ktorrent_app_autogen/mocs_compilation.cpp:10:
/var/uhubuild/work/compile/build/ktorrent/ktorrent_app_autogen/2NRMJ5X7RK/../../../../ktorrent/dialogs/torrentcreatordlg.h:86:16:
error: field ‘update_timer’ has incomplete type ‘QTimer’
         QTimer update_timer;
                ^~~~~~~~~~~~
In file included from /usr/lib/qt5/include/QtWidgets/qwidget.h:44,
                 from /usr/lib/qt5/include/QtWidgets/qdialog.h:44,
                 from /usr/lib/qt5/include/QtWidgets/QDialog:1,
                 from
/var/uhubuild/work/compile/build/ktorrent/ktorrent_app_autogen/2NRMJ5X7RK/../../../../ktorrent/dialogs/addpeersdlg.h:25,
                 from
/var/uhubuild/work/compile/build/ktorrent/ktorrent_app_autogen/2NRMJ5X7RK/moc_addpeersdlg.cpp:9,
                 from
/var/uhubuild/work/compile/build/ktorrent/ktorrent_app_autogen/mocs_compilation.cpp:2:
/usr/lib/qt5/include/QtGui/qwindowdefs.h:76:7: note: forward declaration of
‘class QTimer’
 class QTimer;
       ^~~~~~

Adding #include <QTimer> to ktorrent/dialogs/torrentcreatordlg.h solves this
error.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to