The QAction constructor takes two arguments, text and parent.
The parent argument is optional since Qt 5.7 only, it needs to be specified with earlier versions.
Also, text should actually be a QString, so use QStringLiteral to "convert" it.
The QAction constructor takes two arguments, text and parent.
The parent argument is optional since Qt 5.7 only, it needs to be specified with earlier versions.
Also, text should actually be a QString, so use QStringLiteral to "convert" it.
Compiles with Qt 5.6 now, before I got this error:
/home/abuild/rpmbuild/BUILD/calligraplan-3.1.0/src/libs/ui/kpttaskeditor.cpp: In member function 'void KPlato::TaskEditor::editTasks(const QList<KPlato::Task*>&, const QPoint&)': /home/abuild/rpmbuild/BUILD/calligraplan-3.1.0/src/libs/ui/kpttaskeditor.cpp:625:32: error: no matching function for call to 'QAction::QAction(const char [8])' QAction tasksEdit("Edit..."); ^
Still compiles with Qt 5.9.4 and 5.10.0 too.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |