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

qtcompleter auto test fails to build

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 4.7.1
    • 4.7.0
    • Other
    • None
    • 5d9fb4b86ffd604e65ade61a252037dca224af53

    Description

      the qtcompleter auto test fails to build with the below error
      this is with current git, but was in place at least since 4.6
      the attached patch fixes it for me

      test@qttest:~/tmp/qt/tests/auto$ cd qcompleter/ && /usr/bin/gmake -f Makefile.gui
      /usr/bin/CC -c -features=extensions -library=no%Cstd -library=Crun -lstdcxx4 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/stdcxx4/ -I/usr/include/stdcxx4/ansi -I/opt/kde4/include -O2 -mt -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I/usr/local/Trolltech/Qt-4.7.0/mkspecs/solaris-cc -I. -I../../../include/QtCore -I../../../include/QtGui -I../../../include -I../../../include/QtTest -I. -I.. -I.moc/release-shared -I/usr/sfw/include -o .obj/release-shared/tst_qcompleter.o tst_qcompleter.cpp
      "tst_qcompleter.cpp", line 277: Warning: completer hides tst_QCompleter::completer.
      "../../../include/QtCore/../../src/corelib/kernel/qobject.h", line 453: Warning: Initializing const QAbstractProxyModel& to a NULL value.
      "../../../include/QtCore/../../src/corelib/kernel/qobject.h", line 453: Where: While instantiating "QAbstractProxyModel::qt_check_for_QOBJECT_macro<QAbstractProxyModel>(const QAbstractProxyModel&) const".
      "../../../include/QtCore/../../src/corelib/kernel/qobject.h", line 453: Where: Instantiated from qobject_cast<const QAbstractProxyModel*>(QObject*).
      "tst_qcompleter.cpp", line 768: Where: Instantiated from non-template code.
      "../../../include/QtCore/../../src/corelib/kernel/qobject.h", line 453: Warning: Initializing const QAbstractProxyModel& to a NULL value.
      "../../../include/QtCore/../../src/corelib/kernel/qobject.h", line 453: Where: While instantiating "QAbstractProxyModel::qt_check_for_QOBJECT_macro<QAbstractProxyModel>(const QAbstractProxyModel&) const".
      "../../../include/QtCore/../../src/corelib/kernel/qobject.h", line 453: Where: Instantiated from qobject_cast<const QAbstractProxyModel*>(QObject*).
      "tst_qcompleter.cpp", line 839: Where: Instantiated from non-template code.
      "../../../include/QtCore/../../src/corelib/kernel/qobject.h", line 453: Warning: Initializing const QAbstractProxyModel& to a NULL value.
      "../../../include/QtCore/../../src/corelib/kernel/qobject.h", line 453: Where: While instantiating "QAbstractProxyModel::qt_check_for_QOBJECT_macro<QAbstractProxyModel>(const QAbstractProxyModel&) const".
      "../../../include/QtCore/../../src/corelib/kernel/qobject.h", line 453: Where: Instantiated from qobject_cast<const QAbstractProxyModel*>(QObject*).
      "tst_qcompleter.cpp", line 921: Where: Instantiated from non-template code.
      "tst_qcompleter.cpp", line 1008: Warning: completer hides tst_QCompleter::completer.
      "tst_qcompleter.cpp", line 1054: Warning: completer hides tst_QCompleter::completer.
      "tst_qcompleter.cpp", line 1092: Warning: completer hides tst_QCompleter::completer.
      "tst_qcompleter.cpp", line 1120: Warning: completer hides tst_QCompleter::completer.
      "tst_qcompleter.cpp", line 1142: Warning: completer hides tst_QCompleter::completer.
      "tst_qcompleter.cpp", line 1256: Warning: textEdit hides task250064_Widget::textEdit.
      "tst_qcompleter.cpp", line 1313: Warning: completer hides tst_QCompleter::completer.
      "tst_qcompleter.cpp", line 1327: Error: Could not find a match for QTest::qCompare<QTest::T>(QWidget*, QLineEdit*, const char[29], const char[6], const char[19], int) needed in tst_QCompleter::task253125_lineEditCompletion().
      "tst_qcompleter.cpp", line 1351: Warning: completer hides tst_QCompleter::completer.
      "tst_qcompleter.cpp", line 1365: Error: Could not find a match for QTest::qCompare<QTest::T>(QWidget*, QLineEdit*, const char[29], const char[6], const char[19], int) needed in tst_QCompleter::task247560_keyboardNavigation().
      2 Error(s) and 12 Warning(s) detected.
      gmake: *** [.obj/release-shared/tst_qcompleter.o] Error 2

      Attachments

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

        Activity

          People

            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            hajma Pavel Heimlich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes