Changeset 424 for trunk/src/corelib


Ignore:
Timestamp:
Dec 14, 2009, 8:22:14 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

corelib: QLibraryInfo: Changed default "Settings" path to %ETC%/xdg. Also use %ETC%/qtsys.conf as the system-wide qt.conf instead of %ETC%/qt/qtsys.conf.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/corelib/global/qlibraryinfo.cpp

    r404 r424  
    175175                qtconfig = QDir::rootPath();
    176176            qtconfig = QDir::fromNativeSeparators(qtconfig) +
    177                        QLatin1String("/qt/qtsys.conf");
     177                       QLatin1String("/qtsys.conf");
    178178            qtconfig = QDir::cleanPath(qtconfig);
    179179        }
     
    347347            while((rep = reg_var.indexIn(ret)) != -1) {
    348348                ret.replace(rep, reg_var.matchedLength(),
    349                             QString::fromLocal8Bit(qgetenv(ret.mid(rep + 2,
     349                            Q(qgetenv(ret.mid(rep + 2,
    350350                                reg_var.matchedLength() - 3).toLatin1().constData()).constData()));
    351351            }
     
    474474            while((rep = reg_var.indexIn(ret)) != -1) {
    475475                ret.replace(rep, reg_var.matchedLength(),
    476                             QString::fromLocal8Bit(qgetenv(ret.mid(rep + 2,
     476                            Q(qgetenv(ret.mid(rep + 2,
    477477                                reg_var.matchedLength() - 3).toLatin1().constData()).constData()));
    478478            }
Note: See TracChangeset for help on using the changeset viewer.