diff options
author | Tasuku Suzuki <tasuku.suzuki@nokia.com> | 2010-04-12 10:52:19 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2010-04-12 10:52:54 (GMT) |
commit | 082ca8b884e407cbee65b04e602c9c309fa66e35 (patch) | |
tree | e0c1e299deb82b128e89685ae1677400e6fe768e /src | |
parent | f5bde58801fb2f38404a1ecfd5b006d5d627ee96 (diff) | |
download | Qt-082ca8b884e407cbee65b04e602c9c309fa66e35.zip Qt-082ca8b884e407cbee65b04e602c9c309fa66e35.tar.gz Qt-082ca8b884e407cbee65b04e602c9c309fa66e35.tar.bz2 |
Fix QT_NO_FILESYSTEMMODEL
Merge-request: 2358
Reviewed-by: Thierry Bastian <thierry.bastian@nokia.com>
Diffstat (limited to 'src')
-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 c095b3b..8e7ec80 100644 --- a/src/gui/util/qcompleter.cpp +++ b/src/gui/util/qcompleter.cpp @@ -1689,8 +1689,10 @@ QString QCompleter::pathFromIndex(const QModelIndex& index) const QString t; if (isDirModel) t = sourceModel->data(idx, Qt::EditRole).toString(); +#ifndef QT_NO_FILESYSTEMMODEL else t = sourceModel->data(idx, QFileSystemModel::FileNameRole).toString(); +#endif list.prepend(t); QModelIndex parent = idx.parent(); idx = parent.sibling(parent.row(), index.column()); |