Changeset 366
- Timestamp:
- Nov 30, 2009, 11:56:07 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/corelib/global/qlibraryinfo.cpp
r357 r366 481 481 } 482 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 483 513 if (QDir::isRelativePath(ret)) { 484 514 if (loc == PrefixPath) { … … 488 518 return QDir::cleanPath(QDir(fi.absolutePath()).absoluteFilePath(ret)); 489 519 #else 490 #ifdef Q_OS_OS2491 QSettings *config = QLibraryInfoPrivate::configuration();492 if (config) {493 // if we read paths from qt[sys].conf, the Prefix is relative to494 // the directory we load qt[sys].conf from495 QFileInfo fi(config->fileName());496 return QDir::cleanPath(QDir(fi.absolutePath()).absoluteFilePath(ret));497 }498 else499 #endif500 520 if (QCoreApplication::instance()) { 501 521 #ifdef Q_OS_MAC … … 520 540 } 521 541 return QDir::cleanPath(ret); 542 543 522 544 } 523 545
Note:
See TracChangeset
for help on using the changeset viewer.