亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? qlibraryinfo.cpp

?? QT 開發(fā)環(huán)境里面一個很重要的文件
?? CPP
字號:
/******************************************************************************** Copyright (C) 1992-2006 Trolltech ASA. All rights reserved.**** This file is part of the QtCore module of the Qt Toolkit.**** This file may be used under the terms of the GNU General Public** License version 2.0 as published by the Free Software Foundation** and appearing in the file LICENSE.GPL included in the packaging of** this file.  Please review the following information to ensure GNU** General Public Licensing requirements will be met:** http://www.trolltech.com/products/qt/opensource.html**** If you are unsure which license is appropriate for your use, please** review the following information:** http://www.trolltech.com/products/qt/licensing.html or contact the** sales department at sales@trolltech.com.**** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.******************************************************************************/#include "qdir.h"#include "qfile.h"#include "qconfig.h"#include "qsettings.h"#include "qlibraryinfo.h"#include "qpointer.h"#ifdef QT_BUILD_QMAKEextern QString qmake_libraryInfoFile();#else# include "qcoreapplication.h"#endif#ifdef Q_OS_MAC#  include "private/qcore_mac_p.h"#endif#include "qconfig.cpp"#ifndef QT_NO_SETTINGSstruct QLibrarySettings{    QLibrarySettings();    ~QLibrarySettings() { delete static_cast<QSettings *>(settings); }    QSettings *settings;};class QLibraryInfoPrivate{public:    static QSettings *findConfiguration();    static void cleanup()    {        QLibrarySettings *ls = qt_library_settings();        if (ls) {            delete static_cast<QSettings *>(ls->settings);            ls->settings = 0;        }    }    static QSettings *configuration()    {#ifdef QT_NO_THREAD        // This recursion guard should be a temporary solution; the recursive        // dependency should be found and removed.        static bool initializing = false;        if (initializing)            return 0;        initializing = true;#endif        QLibrarySettings *ls = qt_library_settings();#ifdef QT_NO_THREAD        initializing = false;#endif        return ls ? static_cast<QSettings *>(qt_library_settings()->settings) : (QSettings*)0;    }    Q_GLOBAL_STATIC(QLibrarySettings, qt_library_settings)};QLibrarySettings::QLibrarySettings(){    settings = QLibraryInfoPrivate::findConfiguration();#ifndef QT_BUILD_QMAKE    qAddPostRoutine(QLibraryInfoPrivate::cleanup);#endif}QSettings *QLibraryInfoPrivate::findConfiguration(){    QString qtconfig = QLatin1String(":/qt/etc/qt.conf");#ifdef QT_BUILD_QMAKE    if(!QFile::exists(qtconfig))        qtconfig = qmake_libraryInfoFile();#else    if (!QFile::exists(qtconfig) && QCoreApplication::instance()) {#ifdef Q_OS_MAC	CFBundleRef bundleRef = CFBundleGetMainBundle();        if (bundleRef) {	    QCFType<CFURLRef> urlRef = CFBundleCopyResourceURL(bundleRef,							       QCFString(QLatin1String("qt.conf")),							       0,							       0);	    if (urlRef) {	        QCFString path = CFURLCopyFileSystemPath(urlRef, kCFURLPOSIXPathStyle);		qtconfig = QDir::cleanPath(path);	    }	}	if (qtconfig.isEmpty())#endif            {                QDir pwd(QCoreApplication::applicationDirPath());                qtconfig = pwd.filePath(QLatin1String("qt.conf"));	    }    }#endif    if (QFile::exists(qtconfig))        return new QSettings(qtconfig, QSettings::IniFormat);    return 0;     //no luck}/*!    \class QLibraryInfo    \brief The QLibraryInfo class provides information about the Qt library.    \ingroup misc    \mainclass    Many pieces of information are established when Qt is configured.    Installation paths, license information, and even a unique build    key. This class provides an abstraction for accessing this    information.    \table    \header \o Function           \o Return value    \row    \o buildKey()         \o A string that identifies the Qt version and                                     the configuration. This key is used to ensure                                     that \l{plugins} link against the same version                                     of Qt as the application.    \row    \o location()         \o The path to a certain Qt                                     component (e.g., documentation, header files).    \row    \o licensee(),               licensedProducts() \o Licensing information.    \endtable    You can also use a \c qt.conf file to override the hard-coded paths    that are compiled into the Qt library. For more information, see    the \l {Using qt.conf} documentation.    \sa QSysInfo, {Using qt.conf}*//*! \internal   You cannot create a QLibraryInfo, instead only the static functions are available to query   information.*/QLibraryInfo::QLibraryInfo(){ }/*!  Returns the person to whom this build of Qt is licensed.  \sa licensedProducts()*/QStringQLibraryInfo::licensee(){    const char *str = QT_CONFIGURE_LICENSEE;    return QString::fromLocal8Bit(str);}/*!  Returns the products that the license for this build of Qt has access to.  \sa licensee()*/QStringQLibraryInfo::licensedProducts(){    const char *str = QT_CONFIGURE_LICENSED_PRODUCTS;    return QString::fromLatin1(str);}/*!    Returns a unique key identifying this build of Qt and its    configurations. This key is not globally unique, rather only useful    for establishing of two configurations are compatible. This can be    used to compare with the \c QT_BUILD_KEY preprocessor symbol.    \sa location()*/QStringQLibraryInfo::buildKey(){    return QString::fromLatin1(QT_BUILD_KEY);}/*!  Returns the location specified by \a loc.*/QStringQLibraryInfo::location(LibraryLocation loc){    QString ret;    if(!QLibraryInfoPrivate::configuration()) {        const char *path = 0;        switch (loc) {#ifdef QT_CONFIGURE_PREFIX_PATH        case PrefixPath:            path = QT_CONFIGURE_PREFIX_PATH;            break;#endif#ifdef QT_CONFIGURE_DOCUMENTATION_PATH        case DocumentationPath:            path = QT_CONFIGURE_DOCUMENTATION_PATH;            break;#endif#ifdef QT_CONFIGURE_HEADERS_PATH        case HeadersPath:            path = QT_CONFIGURE_HEADERS_PATH;            break;#endif#ifdef QT_CONFIGURE_LIBRARIES_PATH        case LibrariesPath:            path = QT_CONFIGURE_LIBRARIES_PATH;            break;#endif#ifdef QT_CONFIGURE_BINARIES_PATH        case BinariesPath:            path = QT_CONFIGURE_BINARIES_PATH;            break;#endif#ifdef QT_CONFIGURE_PLUGINS_PATH        case PluginsPath:            path = QT_CONFIGURE_PLUGINS_PATH;            break;#endif#ifdef QT_CONFIGURE_DATA_PATH        case DataPath:            path = QT_CONFIGURE_DATA_PATH;            break;#endif#ifdef QT_CONFIGURE_TRANSLATIONS_PATH        case TranslationsPath:            path = QT_CONFIGURE_TRANSLATIONS_PATH;            break;#endif#ifdef QT_CONFIGURE_SETTINGS_PATH        case SettingsPath:            path = QT_CONFIGURE_SETTINGS_PATH;            break;#endif#ifdef QT_CONFIGURE_EXAMPLES_PATH        case ExamplesPath:            path = QT_CONFIGURE_EXAMPLES_PATH;            break;#endif#ifdef QT_CONFIGURE_DEMOS_PATH        case DemosPath:            path = QT_CONFIGURE_DEMOS_PATH;            break;#endif        default:            break;        }        if (path)            ret = QString::fromLocal8Bit(path);    } else {        QString key;        QString defaultValue;        switch(loc) {        case PrefixPath:            key = QLatin1String("Prefix");            break;        case DocumentationPath:            key = QLatin1String("Documentation");            defaultValue = QLatin1String("doc");            break;        case HeadersPath:            key = QLatin1String("Headers");            defaultValue = QLatin1String("include");            break;        case LibrariesPath:            key = QLatin1String("Libraries");            defaultValue = QLatin1String("lib");            break;        case BinariesPath:            key = QLatin1String("Binaries");            defaultValue = QLatin1String("bin");            break;        case PluginsPath:            key = QLatin1String("Plugins");            defaultValue = QLatin1String("plugins");            break;        case DataPath:            key = QLatin1String("Data");            break;        case TranslationsPath:            key = QLatin1String("Translations");            defaultValue = QLatin1String("translations");            break;        case SettingsPath:            key = QLatin1String("Settings");            break;        case ExamplesPath:            key = QLatin1String("Examples");            break;        case DemosPath:            key = QLatin1String("Demos");            break;        default:            break;        }        if(!key.isNull()) {            QSettings *config = QLibraryInfoPrivate::configuration();            config->beginGroup(QLatin1String("Paths"));            QString subKey;            {                /*                  find the child group whose version number is closest                  to the library version.  for example and we have the                  following groups:                  Paths                  Paths/4.0                  Paths/4.1.2                  Paths/4.2.5                  Paths/5                  if QT_VERSION is 4.0.1, then we use 'Paths/4.0'                  if QT_VERSION is 4.1.5, then we use 'Paths/4.1.2'                  if QT_VERSION is 4.6.3, then we use 'Paths/4.2.5'                  if QT_VERSION is 6.0.2, then we use 'Paths/5'                  note: any of the trailing version numbers may be                  omitted (in which case, they default to zero),                  i.e. 4 == 4.0.0, 4.1 == 4.1.0, and so on                */                enum {                    QT_MAJOR = ((QT_VERSION >> 16) & 0xFF),                    QT_MINOR = ((QT_VERSION >> 8) & 0xFF),                    QT_PATCH = (QT_VERSION & 0xFF)                };                int maj = 0, min = 0, pat = 0;                QStringList children = config->childGroups();                for(int child = 0; child < children.size(); ++child) {                    QString cver = children.at(child);                    QStringList cver_list = cver.split(QLatin1Char('.'));                    if(cver_list.size() > 0 && cver_list.size() < 4) {                        bool ok;                        int cmaj = -1, cmin = -1, cpat = -1;                        cmaj = cver_list[0].toInt(&ok);                        if(!ok || cmaj < 0)                            continue;                        if(cver_list.size() >= 2) {                            cmin = cver_list[1].toInt(&ok);                            if(!ok)                                continue;                            if(cmin < 0)                                cmin = -1;                        }                        if(cver_list.size() >= 3) {                            cpat = cver_list[2].toInt(&ok);                            if(!ok)                                continue;                            if(cpat < 0)                                cpat = -1;                        }                        if((cmaj >= maj && cmaj <= QT_MAJOR) &&                           (cmin == -1 || (cmin >= min && cmin <= QT_MINOR)) &&                           (cpat == -1 || (cpat >= pat && cpat <= QT_PATCH)) &&                           config->contains(cver + QLatin1Char('/') + key)) {                            subKey = cver + QLatin1Char('/');                            maj = cmaj;                            min = cmin;                            pat = cpat;                        }                    }                }            }            ret = config->value(subKey + key, defaultValue).toString();            // expand environment variables in the form $(ENVVAR)            int rep;            QRegExp reg_var(QLatin1String("\\$\\(.*\\)"));            reg_var.setMinimal(true);            while((rep = reg_var.indexIn(ret)) != -1) {                ret.replace(rep, reg_var.matchedLength(),                            QString::fromLocal8Bit(qgetenv(ret.mid(rep + 2,                                reg_var.matchedLength() - 3).toLatin1().constData()).constData()));            }            config->endGroup();        }    }    if (QDir::isRelativePath(ret)) {        if (loc == PrefixPath) {            // we make the prefix path absolute to the executable's directory#ifdef QT_BUILD_QMAKE            return QFileInfo(qmake_libraryInfoFile()).absolutePath();#else            if (QCoreApplication::instance()) {#ifdef Q_OS_MAC	        CFBundleRef bundleRef = CFBundleGetMainBundle();		if (bundleRef) {		    QCFType<CFURLRef> urlRef = CFBundleCopyBundleURL(bundleRef);		    if (urlRef) {		        QCFString path = CFURLCopyFileSystemPath(urlRef, kCFURLPOSIXPathStyle);		        return QDir::cleanPath(path + QLatin1String("/Contents"));		    }		}#endif                return QDir(QCoreApplication::applicationDirPath()).absoluteFilePath(ret);            } else {                return QDir::current().absoluteFilePath(ret);            }#endif        } else {            // we make any other path absolute to the prefix directory            return QDir(location(PrefixPath)).absoluteFilePath(ret);        }    }    return ret;}/*!    \enum QLibraryInfo::LibraryLocation    \keyword library location    This enum type is used to specify a specific location    specifier:    \value PrefixPath The default prefix for all paths.    \value DocumentationPath The location for documentation upon install.    \value HeadersPath The location for all headers.    \value LibrariesPath The location of installed librarires.    \value BinariesPath The location of installed Qt binaries (tools and applications).    \value PluginsPath The location of installed Qt plugins.    \value DataPath The location of general Qt data.    \value TranslationsPath The location of translation information for Qt strings.    \value SettingsPath The location for Qt settings.    \value ExamplesPath The location for examples upon install.    \value DemosPath The location for demos upon install.    \sa location()*/#endif // QT_NO_SETTINGS

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲人成伊人成综合网小说| 午夜伊人狠狠久久| 午夜精品成人在线| 国产麻豆欧美日韩一区| 欧美日韩国产综合一区二区三区 | 老汉av免费一区二区三区| 成人一级视频在线观看| 91精品国产麻豆国产自产在线 | 2024国产精品| 偷拍与自拍一区| 99精品欧美一区二区蜜桃免费| 日韩女优电影在线观看| 亚洲mv大片欧洲mv大片精品| 97久久精品人人爽人人爽蜜臀| 精品国产123| 麻豆精品精品国产自在97香蕉| 欧美在线视频日韩| **欧美大码日韩| av在线不卡电影| 国产精品污网站| 国产成人亚洲综合a∨婷婷图片| 欧美成人r级一区二区三区| 图片区日韩欧美亚洲| 欧美日韩情趣电影| 亚洲电影视频在线| 欧美精选一区二区| 午夜精品123| 欧美疯狂性受xxxxx喷水图片| 亚洲一二三四区| 欧美午夜寂寞影院| 亚洲国产三级在线| 精品视频在线视频| 亚洲成av人综合在线观看| 在线不卡欧美精品一区二区三区| 一二三区精品视频| 制服丝袜中文字幕一区| 青青草国产精品97视觉盛宴 | 免费在线观看视频一区| 日韩一区二区三区高清免费看看| 日本少妇一区二区| 日韩欧美激情在线| 国产乱码精品一区二区三区av| 国产午夜亚洲精品午夜鲁丝片| 国产精品亚洲午夜一区二区三区| 欧美国产1区2区| 色先锋久久av资源部| 亚洲h动漫在线| 26uuu国产日韩综合| 91免费观看国产| 亚洲一二三区在线观看| 欧美一区二区大片| 成人免费毛片高清视频| 亚洲女人的天堂| 制服丝袜一区二区三区| 国产精品自在在线| 亚洲女同女同女同女同女同69| 欧美日韩精品三区| 国产精品亚洲午夜一区二区三区 | 韩国中文字幕2020精品| 国产精品欧美一级免费| 欧美性感一类影片在线播放| 欧美aaaaaa午夜精品| 国产午夜精品理论片a级大结局| 9l国产精品久久久久麻豆| 亚洲成在线观看| 久久久久97国产精华液好用吗| 色综合视频在线观看| 另类小说色综合网站| 综合激情成人伊人| 精品国产精品一区二区夜夜嗨| 99免费精品视频| 麻豆91免费看| 亚洲另类色综合网站| 日韩美女一区二区三区四区| 一本到不卡精品视频在线观看| 麻豆免费看一区二区三区| 一区二区三区久久久| 久久精品视频在线免费观看 | 欧美经典一区二区| 91精品国产欧美一区二区成人 | 国产精品一区二区黑丝| 亚洲欧洲日本在线| 欧美精品一区二区高清在线观看| 色香蕉久久蜜桃| 成人免费毛片app| 韩国毛片一区二区三区| 亚欧色一区w666天堂| 最新不卡av在线| 久久久高清一区二区三区| 欧美一区二区视频观看视频| 欧美综合色免费| 不卡的av在线播放| 国产激情一区二区三区| 老司机午夜精品99久久| 亚洲成人免费在线观看| 亚洲欧洲av一区二区三区久久| 久久人人超碰精品| 欧美成人一区二区三区片免费| 欧美色爱综合网| 一本久道中文字幕精品亚洲嫩 | 综合久久久久综合| 日本一区二区三区久久久久久久久不| 91麻豆精品国产综合久久久久久| 欧美亚洲国产一区二区三区| 99久久精品国产麻豆演员表| 成人福利在线看| 国产不卡免费视频| 国产精品一二二区| 成人性生交大片免费看中文网站| 韩国av一区二区三区四区 | 欧美一三区三区四区免费在线看| 99久久伊人精品| 99久久国产综合色|国产精品| caoporen国产精品视频| jizz一区二区| 91蝌蚪porny| 在线观看日韩av先锋影音电影院| 色嗨嗨av一区二区三区| 一本到不卡精品视频在线观看| 色悠久久久久综合欧美99| 一本久道久久综合中文字幕| 欧美亚洲动漫另类| 欧美一区二区三区视频免费| 日韩一二三四区| 久久免费电影网| 国产精品久久久久久久久久免费看 | 亚洲成人av中文| 日日噜噜夜夜狠狠视频欧美人| 亚洲成人动漫在线免费观看| 午夜精品一区二区三区免费视频 | 国产亚洲一区二区三区四区| 日本一区二区在线不卡| 日韩伦理av电影| 亚洲五码中文字幕| 久久电影网电视剧免费观看| 国产高清成人在线| 一本久久a久久免费精品不卡| 欧美日本一区二区| 久久久久国产精品人| 一区二区在线观看免费| 免费成人av在线| 国产成人aaa| 欧美亚洲综合色| 精品精品国产高清a毛片牛牛| 国产蜜臀97一区二区三区| 亚洲麻豆国产自偷在线| 蜜乳av一区二区三区| 成人网在线播放| 欧美挠脚心视频网站| 26uuuu精品一区二区| 一区二区三区四区精品在线视频 | 成人黄动漫网站免费app| 欧美天堂亚洲电影院在线播放| 337p粉嫩大胆色噜噜噜噜亚洲| 中文字幕亚洲综合久久菠萝蜜| 视频在线观看一区| 成人一级视频在线观看| 欧美一区午夜视频在线观看| 国产精品免费av| 美女脱光内衣内裤视频久久影院| 99久精品国产| 精品处破学生在线二十三| 亚洲欧美日本韩国| 国产精品夜夜嗨| 在线播放91灌醉迷j高跟美女| 国产精品你懂的| 激情小说亚洲一区| 欧美日韩高清在线播放| 17c精品麻豆一区二区免费| 激情久久五月天| 欧美日韩精品福利| 一区av在线播放| av电影在线观看不卡| 久久夜色精品一区| 人人爽香蕉精品| 欧洲av一区二区嗯嗯嗯啊| 国产精品久久久久影视| 99久久99久久免费精品蜜臀| 久久综合九色综合久久久精品综合 | 日本一区二区成人| 激情欧美日韩一区二区| 欧美精品欧美精品系列| 亚洲图片有声小说| 欧洲精品中文字幕| 亚洲激情六月丁香| 91啪在线观看| 中文字幕亚洲综合久久菠萝蜜| 国产精品18久久久久| 欧美刺激脚交jootjob| 日韩精品一二三区| 欧美日韩中文一区| 午夜视黄欧洲亚洲| 欧美日韩成人综合| 日韩不卡一区二区三区 | 奇米影视一区二区三区| 欧美综合久久久| 一级精品视频在线观看宜春院| 91福利精品第一导航| 一区二区三区欧美日韩| 日本高清无吗v一区|