Changeset 901 for trunk/src/corelib/global
- Timestamp:
- Jul 19, 2011, 11:45:13 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/corelib/global/qlibraryinfo.cpp
r900 r901 522 522 #ifdef BOOTSTRAPPING 523 523 QFileInfo fi(qmake_libraryInfoFile()); 524 ret urnQDir::cleanPath(QDir(fi.absolutePath()).absoluteFilePath(ret));524 ret QDir::cleanPath(QDir(fi.absolutePath()).absoluteFilePath(ret)); 525 525 #else 526 526 QSettings *config = QLibraryInfoPrivate::configuration(); … … 529 529 // the directory we load qt[sys].conf from 530 530 QFileInfo fi(config->fileName()); 531 ret urnQDir::cleanPath(QDir(fi.absolutePath()).absoluteFilePath(ret));531 ret QDir::cleanPath(QDir(fi.absolutePath()).absoluteFilePath(ret)); 532 532 } else { 533 533 // we make the prefix path absolute to the executable's directory 534 534 if (QCoreApplication::instance()) { 535 return QDir::cleanPath(QDir(QCoreApplication::applicationDirPath()).absoluteFilePath(ret)); 535 ret = QDir::cleanPath(QDir(QCoreApplication::applicationDirPath()).absoluteFilePath(ret)); 536 } else { 537 ret = QDir::current().absoluteFilePath(ret); 536 538 } 537 return QDir::current().absoluteFilePath(ret);538 539 } 539 540 #endif 540 } 541 542 // we make any other path absolute to the prefix directory 543 return QDir::cleanPath(QDir(location(PrefixPath)).absoluteFilePath(ret)); 544 545 #else // #ifdef Q_OS_OS2 541 } else { 542 // we make any other path absolute to the prefix directory 543 ret = QDir::cleanPath(QDir(location(PrefixPath)).absoluteFilePath(ret)); 544 } 545 546 return QDir::toNativeSeparators(ret); 547 548 #else // Q_OS_OS2 546 549 547 550 if (QDir::isRelativePath(ret)) { … … 575 578 return QDir::cleanPath(ret); 576 579 577 #endif // #ifdefQ_OS_OS2580 #endif // Q_OS_OS2 578 581 } 579 582
Note:
See TracChangeset
for help on using the changeset viewer.