Compile error in tst_qwebelement.cpp when compiled with Qt 4.4.2: /Users/erik/work/webkit-qt44/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp: In member function ‘void tst_QWebElement::iteration()’: /Users/erik/work/webkit-qt44/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:304: error: ‘class QList<QWebElement>’ has no member named ‘length’ /Users/erik/work/webkit-qt44/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:305: error: ‘class QList<QWebElement>’ has no member named ‘length’ /Users/erik/work/webkit-qt44/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:305: error: ‘class QList<QWebElement>’ has no member named ‘length’ /Users/erik/work/webkit-qt44/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:313: error: ‘class QList<QWebElement>’ has no member named ‘length’ /Users/erik/work/webkit-qt44/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:314: error: ‘class QList<QWebElement>’ has no member named ‘length’ /Users/erik/work/webkit-qt44/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:314: error: ‘class QList<QWebElement>’ has no member named ‘length’ This is because QList::length() was added as an alias to QList::count() in Qt 4.5.0.
Created attachment 29534 [details] Fix to make tst_qwebelement.cpp build under Qt 4.4.x. replaces QList::length() with QList::count() which exists in both Qt 4.4 and 4.5.
Sorry Erik, I saw Laszlo's patch first :) *** This bug has been marked as a duplicate of 25242 ***