Details
Description
I configured Qt with the option "-no-feature-stringlistmodel" and got a compile error
(also patches from QTBUG-20378 were applied):
cd src/scripttools/ && make -f Makefile make[1]: Entering directory `/home/sergey/code/qt-everywhere-opensource-src-4.7.3/src/scripttools' compiling debugging/qscriptdebuggerlocalswidget.cpp debugging/qscriptdebuggerlocalswidget.cpp: In member function 'void QScriptDebuggerLocalsWidgetPrivate::_q_onCompletionTaskFinished()': debugging/qscriptdebuggerlocalswidget.cpp:159:9: error: 'QStringListModel' was not declared in this scope debugging/qscriptdebuggerlocalswidget.cpp:159:27: error: 'model' was not declared in this scope debugging/qscriptdebuggerlocalswidget.cpp:159:35: error: parse error in template argument list debugging/qscriptdebuggerlocalswidget.cpp:159:85: error: no matching function for call to 'qobject_cast(QAbstractItemModel*)' debugging/qscriptdebuggerlocalswidget.cpp:159:85: note: candidates are: ../../include/QtCore/../../src/corelib/kernel/qobject.h:361:10: note: template<class T> T qobject_cast(QObject*) ../../include/QtCore/../../src/corelib/kernel/qobject.h:370:44: note: template<class T> T qobject_cast(const QObject*) ../../include/QtCore/../../src/corelib/tools/qsharedpointer_impl.h:845:42: note: template<class X, class T> QSharedPointer<typename QtSharedPointer::RemovePointer<X>::Type> qobject_cast(const QSharedPointer<T>&) ../../include/QtCore/../../src/corelib/tools/qsharedpointer_impl.h:851:40: note: template<class X, class T> QSharedPointer<typename QtSharedPointer::RemovePointer<X>::Type> qobject_cast(const QWeakPointer<X>&) debugging/qscriptdebuggerlocalswidget.cpp:161:25: error: expected type-specifier before 'QStringListModel' debugging/qscriptdebuggerlocalswidget.cpp:161:25: error: expected ';' before 'QStringListModel' make[1]: *** [.obj/debug-shared-emb-x86_64/qscriptdebuggerlocalswidget.o] Error 1 make[1]: Leaving directory `/home/sergey/code/qt-everywhere-opensource-src-4.7.3/src/scripttools' make: *** [sub-scripttools-make_default-ordered] Error 2