[okular] [Bug 372339] New: Okular fails to compile with QT < 5.6 due to usage of new QT method QList::constFirst
Tobias Deiminger
bugzilla_noreply at kde.org
Fri Nov 11 12:24:38 UTC 2016
https://bugs.kde.org/show_bug.cgi?id=372339
Bug ID: 372339
Summary: Okular fails to compile with QT < 5.6 due to usage of
new QT method QList::constFirst
Product: okular
Version: unspecified
Platform: Other
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
Assignee: okular-devel at kde.org
Reporter: haxtibal at t-online.de
Target Milestone: ---
Okular configures, but fails to compile if built with QT < 5.6. This is because
core/document.cpp:L3687 uses QList<int>::constFirst, which was introduced only
with Qt 5.6.
CMakeLists.txt says set(QT_REQUIRED_VERSION "5.2.0"), so it looks like it was
intended to support lower versions than QT 5.6.
Compiler error is:
~/okular/core/document.cpp: In member function ‘void
Okular::Document::editFormCombo(int, Okular::FormFieldChoice*, const QString&,
int, int, int)’:
~/okular/core/document.cpp:3687:59: error: ‘class QList<int>’ has no member
named ‘constFirst’
prevText = form->choices()[form->currentChoices().constFirst()];
Found with okular master (ae6adf2390e36d15754133fdf9f9a16c7bce7680), QT 5.5.1
and a fresh KF5 from kdesrc-build.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Okular-devel
mailing list