Changeset 357 for trunk/src/corelib/global
- Timestamp:
- Nov 28, 2009, 8:49:40 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/corelib/global/qlibraryinfo.cpp
r2 r357 41 41 42 42 #include "qdir.h" 43 #include "qfile.h" 43 #include "qfile.h" 44 44 #include "qconfig.h" 45 45 #include "qsettings.h" … … 58 58 # include "private/qcore_mac_p.h" 59 59 #endif 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 60 82 61 83 #include "qconfig.cpp" … … 137 159 qtconfig = pwd.filePath(QLatin1String("qt.conf")); 138 160 } 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 139 181 } 140 182 #endif … … 296 338 } 297 339 298 if (path) 340 if (path) 299 341 ret = QString::fromLocal8Bit(path); 342 343 344 345 346 347 348 349 350 351 352 353 300 354 } else { 301 355 QString key; … … 431 485 // we make the prefix path absolute to the executable's directory 432 486 #ifdef QT_BUILD_QMAKE 433 return QFileInfo(qmake_libraryInfoFile()).absolutePath(); 487 QFileInfo fi(qmake_libraryInfoFile()); 488 return QDir::cleanPath(QDir(fi.absolutePath()).absoluteFilePath(ret)); 434 489 #else 490 491 492 493 494 495 496 497 498 499 435 500 if (QCoreApplication::instance()) { 436 501 #ifdef Q_OS_MAC … … 444 509 } 445 510 #endif 446 return QDir (QCoreApplication::applicationDirPath()).absoluteFilePath(ret);511 return QDir); 447 512 } else { 448 513 return QDir::current().absoluteFilePath(ret); … … 451 516 } else { 452 517 // we make any other path absolute to the prefix directory 453 return QDir (location(PrefixPath)).absoluteFilePath(ret);518 return QDir); 454 519 } 455 520 } 456 return ret;521 return ; 457 522 } 458 523
Note:
See TracChangeset
for help on using the changeset viewer.