Changeset 172 for trunk/src/gui/util
- Timestamp:
- Sep 9, 2009, 1:54:31 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/util/qcompleter.cpp
r2 r172 135 135 To provide completions, QCompleter needs to know the path from an index. 136 136 This is provided by pathFromIndex(). The default implementation of 137 pathFromIndex(), returns the data for the \l{Qt::EditRole}{edit role} 137 pathFromIndex(), returns the data for the \l{Qt::EditRole}{edit role} 138 138 for list models and the absolute file path if the mode is a QDirModel. 139 139 … … 483 483 QString str = source->index(i, c->column).data().toString(); 484 484 if (str.startsWith(c->prefix, c->cs) 485 #if !defined(Q_OS_ WIN) || defined(Q_OS_WINCE)485 #if !defined(Q_OS_) 486 486 && (!dirModel || QDir::toNativeSeparators(str) != QDir::separator()) 487 487 #endif … … 988 988 #ifndef QT_NO_DIRMODEL 989 989 if (qobject_cast<QDirModel *>(model)) { 990 #if defined(Q_OS_WIN) && !defined(Q_OS_WINCE)990 #if ) 991 991 setCaseSensitivity(Qt::CaseInsensitive); 992 992 #else … … 1621 1621 } while (idx.isValid()); 1622 1622 1623 #if !defined(Q_OS_ WIN) || defined(Q_OS_WINCE)1623 #if !defined(Q_OS_) 1624 1624 if (list.count() == 1) // only the separator or some other text 1625 1625 return list[0]; … … 1655 1655 QString pathCopy = QDir::toNativeSeparators(path); 1656 1656 QString sep = QDir::separator(); 1657 #if defined(Q_OS_WIN) && !defined(Q_OS_WINCE)1657 #if ) 1658 1658 if (pathCopy == QLatin1String("\\") || pathCopy == QLatin1String("\\\\")) 1659 1659 return QStringList(pathCopy); … … 1668 1668 QStringList parts = pathCopy.split(re); 1669 1669 1670 #if defined(Q_OS_WIN) && !defined(Q_OS_WINCE)1670 #if ) 1671 1671 if (!doubleSlash.isEmpty()) 1672 1672 parts[0].prepend(doubleSlash);
Note:
See TracChangeset
for help on using the changeset viewer.