Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-20509

Compilation error in module qscriptdebuggerlocalswidget.cpp without stringlistmodel support

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.0.0
    • 4.7.3
    • Qt Script
    • None
    • Debian GNU/Linux wheezy
    • 48fca54118b65d6399ece5f258426144bdc2b03b

    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
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kenthans Kent Hansen (Inactive)
            laborer Sergey Gusarov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes