summaryrefslogtreecommitdiffstats
path: root/src/gui/util
diff options
context:
space:
mode:
authorTasuku Suzuki <tasuku.suzuki@nokia.com>2010-04-12 10:52:19 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2010-04-12 10:52:54 (GMT)
commit082ca8b884e407cbee65b04e602c9c309fa66e35 (patch)
treee0c1e299deb82b128e89685ae1677400e6fe768e /src/gui/util
parentf5bde58801fb2f38404a1ecfd5b006d5d627ee96 (diff)
downloadQt-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/gui/util')
-rw-r--r--src/gui/util/qcompleter.cpp2
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());