Changeset 173
- Timestamp:
- Sep 9, 2009, 2:38:34 AM (16 years ago)
- Location:
- trunk/src/gui/dialogs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/dialogs/qfilesystemmodel.cpp
r172 r173 353 353 absolutePath = QDir(longPath).absolutePath(); 354 354 355 // ### TODO can we use bool QAbstractFileEngine::caseSensitive() const?356 355 QStringList pathElements = absolutePath.split(QLatin1Char('/'), QString::SkipEmptyParts); 357 356 if ((pathElements.isEmpty()) … … 1089 1088 1090 1089 QList<QPair<QFileSystemModelPrivate::QFileSystemNode*, int> > values; 1091 QHash< QString, QFileSystemNode *>::const_iterator iterator;1090 QHash<, QFileSystemNode *>::const_iterator iterator; 1092 1091 int i = 0; 1093 1092 for(iterator = indexNode->children.begin() ; iterator != indexNode->children.end() ; ++iterator) { … … 1588 1587 QStringList newFiles = files; 1589 1588 qSort(newFiles.begin(), newFiles.end()); 1590 QHash< QString, QFileSystemNode*>::const_iterator i = parentNode->children.constBegin();1589 QHash<, QFileSystemNode*>::const_iterator i = parentNode->children.constBegin(); 1591 1590 while (i != parentNode->children.constEnd()) { 1592 1591 QStringList::iterator iterator; -
trunk/src/gui/dialogs/qfilesystemmodel_p.h
r2 r173 81 81 82 82 public: 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 83 106 class QFileSystemNode 84 107 { … … 87 110 : fileName(filename), populatedChildren(false), isVisible(false), parent(p), info(0) {} 88 111 ~QFileSystemNode() { 89 QHash< QString, QFileSystemNode*>::const_iterator i = children.constBegin();112 QHash<, QFileSystemNode*>::const_iterator i = children.constBegin(); 90 113 while (i != children.constEnd()) { 91 114 delete i.value(); … … 162 185 if (info) 163 186 info->icon = iconProvider->icon(QFileInfo(path)); 164 QHash< QString, QFileSystemNode *>::const_iterator iterator;187 QHash<, QFileSystemNode *>::const_iterator iterator; 165 188 for(iterator = children.constBegin() ; iterator != children.constEnd() ; ++iterator) { 166 189 iterator.value()->updateIcon(iconProvider, path + QLatin1Char('/') + iterator.value()->fileName); … … 171 194 if (info) 172 195 info->displayType = iconProvider->type(QFileInfo(path)); 173 QHash< QString, QFileSystemNode *>::const_iterator iterator;196 QHash<, QFileSystemNode *>::const_iterator iterator; 174 197 for(iterator = children.constBegin() ; iterator != children.constEnd() ; ++iterator) { 175 198 iterator.value()->retranslateStrings(iconProvider, path + QLatin1Char('/') + iterator.value()->fileName); … … 179 202 bool populatedChildren; 180 203 bool isVisible; 181 QHash< QString,QFileSystemNode *> children;204 QHash<QFileSystemNode *> children; 182 205 QList<QString> visibleChildren; 183 206 QFileSystemNode *parent;
Note:
See TracChangeset
for help on using the changeset viewer.