Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.6.2
-
None
-
OpenSolaris build 132, amd64, Sun Studio 12 U1
-
5d9fb4b86ffd604e65ade61a252037dca224af53
Description
trying to build the autotests fails with
...
gmake[1]: Entering directory `/export/home/test/tmp/qt/tests/auto/qcompleter'
/export/home/test/tmp/qt/bin/moc -DQT_GUI_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I../../../mkspecs/solaris-cc -I. -I../../../include/QtCore -I../../../include/QtGui -I../../../include -I../../../include/QtTest -I. -I.. -I.moc/debug-shared -I/usr/sfw/include tst_qcompleter.cpp -o .moc/debug-shared/tst_qcompleter.moc
/export/home/test/bin/CC -c -g -mt -DQT_GUI_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I../../../mkspecs/solaris-cc -I. -I../../../include/QtCore -I../../../include/QtGui -I../../../include -I../../../include/QtTest -I. -I.. -I.moc/debug-shared -I/usr/sfw/include -o .obj/debug-shared/tst_qcompleter.o tst_qcompleter.cpp
"tst_qcompleter.cpp", line 277: Warning: completer hides tst_QCompleter::completer.
"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 9 Warning(s) detected.
this patch helped me proceed:
— tst_qcompleter.cpp.orig 2010-02-27 22:46:37.070114269 +0100
+++ tst_qcompleter.cpp 2010-02-27 23:05:07.175271078 +0100
@@ -1324,7 +1324,7 @@
#endif
QTest::qWait(10);
QApplication::setActiveWindow(&edit);
- QTRY_COMPARE(QApplication::activeWindow(), &edit);
+ QTRY_COMPARE(QApplication::activeWindow(), (QWidget*)&edit);
QTest::keyClick(&edit, 'i');
QCOMPARE(edit.completer()->currentCompletion(), QString("iota"));
@@ -1362,7 +1362,7 @@
QTest::qWait(10);
QApplication::setActiveWindow(&edit);
- QTRY_COMPARE(QApplication::activeWindow(), &edit);
+ QTRY_COMPARE(QApplication::activeWindow(), (QWidget*)&edit);
QTest::keyClick(&edit, 'r');
QTest::keyClick(edit.completer()->popup(), Qt::Key_Down);