Changeset 1030 for trunk/qmake/option.cpp
- Timestamp:
- Aug 26, 2011, 7:48:22 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/qmake/option.cpp
r847 r1030 774 774 QString qmake_libraryInfoFile() 775 775 { 776 776 777 QString ret; 777 778 #if defined(Q_OS_WIN) … … 788 789 DosQueryModuleName(ppib->pib_hmte, sizeof(appFileName), appFileName); 789 790 } 790 ret = QFileInfo(QString::fromLocal8Bit(appFileName)).absolutePath() + 791 QLatin1String("/qt.conf"); 792 if (!QFile::exists(ret)) { 793 // search in the system-wide location 794 ret = QString::fromLocal8Bit(qgetenv("ETC")); 795 if (ret.isEmpty()) 796 ret = QDir::rootPath(); 797 ret = ret + QLatin1String("/qtsys.conf"); 798 } 799 return QDir::cleanPath(ret); 791 ret = QFileInfo(QString::fromLocal8Bit(appFileName)).filePath(); 800 792 #else 801 793 QString argv0 = QFile::decodeName(QByteArray(Option::application_argv0)); … … 839 831 ret = fi.exists() ? fi.canonicalFilePath() : QString(); 840 832 #endif 841 #if !defined(Q_OS_OS2)842 833 if(!ret.isEmpty()) 843 834 ret = QDir(QFileInfo(ret).absolutePath()).filePath("qt.conf"); 844 835 return ret; 845 #endif846 836 } 847 837
Note:
See TracChangeset
for help on using the changeset viewer.