Changeset 1027
- Timestamp:
- Aug 25, 2011, 9:35:37 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/dialogs/qfilesystemmodel.cpp
r1022 r1027 1079 1079 if (left ^ right) 1080 1080 return left; 1081 1082 // place "." and ".." pseudo dirs on top 1083 if (left) { 1084 int lw = l->fileName == QLatin1String(".") ? 2 : 1085 l->fileName == QLatin1String("..") ? 1 : 0; 1086 int rw = r->fileName == QLatin1String(".") ? 2 : 1087 r->fileName == QLatin1String("..") ? 1 : 0; 1088 if (lw || rw) 1089 return lw > rw; 1090 } 1081 1091 #endif 1082 1092 return QFileSystemModelPrivate::naturalCompare(l->fileName,
Note:
See TracChangeset
for help on using the changeset viewer.