Details
-
Bug
-
Resolution: Done
-
P4: Low
-
4.7.2
Description
The snipplet from Q3ListViewItem docs page:
//! [7] QList<Q3ListViewItem *> lst; Q3ListViewItemIterator it(myListView, Selected); while (it.current()) { lst.append(it.current()); ++it; } //! [7]
does not compile
test.cpp:176: error: 'Selected' was not declared in this scope
=> it should have been "Q3ListViewItemIterator::Selected".
Ofc, q3 support is not a point of focus anymore, and when getting this error anyone would know what the problem was, but still - it's silly to have a piece of code in the docs which cannot be simply copied and pasted.
I attach a fixing patch against the newest git version.