Changeset 424


Ignore:
Timestamp:
Dec 14, 2009, 8:22:14 PM (16 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.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.cmd

    r418 r424  
    612612    /* settings */
    613613    if (G.QT_INSTALL_SETTINGS == "") then
    614         G.QT_INSTALL_SETTINGS = "$(ETC)\qt"
     614        G.QT_INSTALL_SETTINGS = "$(ETC)\xdg"
    615615    /* examples */
    616616    if (G.QT_INSTALL_EXAMPLES == "") then
     
    731731        '[Paths]'G.EOL||,
    732732        'Prefix = ..'G.EOL||,
    733         'Settings = $(ETC)/qt'G.EOL
     733        'Settings = $(ETC)/xdg'G.EOL
    734734    call charout qt_conf
    735735
  • trunk/doc/src/qt-conf.qdoc

    r357 r424  
    8686    (or the application executable if Qt is built as a static library)
    8787
    88     \o \c %ETC%\qt\qtsys.conf
     88    \o \c %ETC%\qtsys.conf
    8989   
    9090    \endlist
  • 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                            QFile::decodeName(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                            QFile::decodeName(qgetenv(ret.mid(rep + 2,
    477477                                reg_var.matchedLength() - 3).toLatin1().constData()).constData()));
    478478            }
Note: See TracChangeset for help on using the changeset viewer.