Changeset 846 for trunk/src/corelib/io/qresource.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/corelib/io/qresource.cpp
r769 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected]) … … 188 188 as a file system rooted with a \c{/} character, or in resource notation 189 189 rooted with a \c{:} character. A relative resource can also be opened 190 which will be found through thesearchPaths().190 which will be found searchPaths(). 191 191 192 192 A QResource that is representing a file will have data backing it, this … … 929 929 }; 930 930 931 #if defined(Q_OS_UNIX) 931 #if defined(Q_OS_UNIX) 932 932 #define QT_USE_MMAP 933 933 #endif … … 1412 1412 const QString path = (file == AbsolutePathName) ? d->resource.absoluteFilePath() : d->resource.fileName(); 1413 1413 const int slash = path.lastIndexOf(QLatin1Char('/')); 1414 if (slash != -1) 1415 return path.left(slash); 1414 if (slash == -1) 1415 return QLatin1String(":"); 1416 else if (slash <= 1) 1417 return QLatin1String(":/"); 1418 return path.left(slash); 1419 1416 1420 } else if(file == CanonicalName || file == CanonicalPathName) { 1417 1421 const QString absoluteFilePath = d->resource.absoluteFilePath();
Note:
See TracChangeset
for help on using the changeset viewer.