diff options
author | Tasuku Suzuki <tasuku.suzuki@nokia.com> | 2010-08-16 10:15:52 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-08-16 10:16:58 (GMT) |
commit | aebac76abbc5ed617d5998009afb06f07b9e237f (patch) | |
tree | 1557dd9846fa0268deb4ce5b769cd1b13456da6f /src/gui/util | |
parent | 07d6c4f8a92110a4fb386e184d4b0e866d897fbc (diff) | |
download | Qt-aebac76abbc5ed617d5998009afb06f07b9e237f.zip Qt-aebac76abbc5ed617d5998009afb06f07b9e237f.tar.gz Qt-aebac76abbc5ed617d5998009afb06f07b9e237f.tar.bz2 |
Fix compilation: QT_NO_LINEEDIT
Merge-request: 774
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'src/gui/util')
-rw-r--r-- | src/gui/util/qcompleter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/util/qcompleter.cpp b/src/gui/util/qcompleter.cpp index 04d6de9..e718212 100644 --- a/src/gui/util/qcompleter.cpp +++ b/src/gui/util/qcompleter.cpp @@ -921,10 +921,12 @@ void QCompleterPrivate::showPopup(const QRect& rect) 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 } /*! |