--- a/src/gui/util/qcompleter.cpp Fri Sep 17 08:34:18 2010 +0300
+++ b/src/gui/util/qcompleter.cpp Mon Oct 04 01:19:32 2010 +0300
@@ -921,10 +921,12 @@
void QCompleterPrivate::_q_fileSystemModelDirectoryLoaded(const QString &path)
{
Q_Q(QCompleter);
+#ifndef QT_NO_LINEEDIT
QLineEdit *lineEdit = qobject_cast<QLineEdit *>(widget);
//the path given by QFileSystemModel does not end with /
if (lineEdit && !lineEdit->text().isEmpty() && !q->completionPrefix().isEmpty() && q->completionPrefix() != path + QLatin1Char('/'))
q->complete();
+#endif
}
/*!