当前位置: 首页>>代码示例>>C++>>正文


C++ QT_PREPEND_NAMESPACE函数代码示例

本文整理汇总了C++中QT_PREPEND_NAMESPACE函数的典型用法代码示例。如果您正苦于以下问题:C++ QT_PREPEND_NAMESPACE函数的具体用法?C++ QT_PREPEND_NAMESPACE怎么用?C++ QT_PREPEND_NAMESPACE使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了QT_PREPEND_NAMESPACE函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: QT_MANGLE_NAMESPACE

QT_END_NAMESPACE


int QT_MANGLE_NAMESPACE(qInitResources_gridlayout)()
{
    QT_PREPEND_NAMESPACE(qRegisterResourceData)
        (0x01, qt_resource_struct, qt_resource_name, qt_resource_data);
    return 1;
}
开发者ID:vistone,项目名称:qt-everywhere-opensource-src-4.8.6,代码行数:9,代码来源:qrc_gridlayout.cpp

示例2: QT_MANGLE_NAMESPACE

QT_END_NAMESPACE


int QT_MANGLE_NAMESPACE(qInitResources_metallicbrush_svgbutton)()
{
    QT_PREPEND_NAMESPACE(qRegisterResourceData)
        (0x01, qt_resource_struct, qt_resource_name, qt_resource_data);
    return 1;
}
开发者ID:daveti,项目名称:pvbaddon,代码行数:9,代码来源:qrc_metallicbrush_svgbutton.cpp

示例3: QT_MANGLE_NAMESPACE

QT_END_NAMESPACE


int QT_MANGLE_NAMESPACE(qInitResources_securesocketclient)()
{
    QT_PREPEND_NAMESPACE(qRegisterResourceData)
        (0x01, qt_resource_struct, qt_resource_name, qt_resource_data);
    return 1;
}
开发者ID:vistone,项目名称:qt-everywhere-opensource-src-4.8.6,代码行数:9,代码来源:qrc_securesocketclient.cpp

示例4: QT_MANGLE_NAMESPACE

QT_END_NAMESPACE


int QT_MANGLE_NAMESPACE(qInitResources_EquationOfTime)()
{
    QT_PREPEND_NAMESPACE(qRegisterResourceData)
        (0x01, qt_resource_struct, qt_resource_name, qt_resource_data);
    return 1;
}
开发者ID:karthiv,项目名称:Star-Buddy,代码行数:9,代码来源:qrc_EquationOfTime.cpp

示例5: QT_MANGLE_NAMESPACE

QT_END_NAMESPACE


int QT_MANGLE_NAMESPACE(qInitResources_qtpropertybrowser)()
{
    QT_PREPEND_NAMESPACE(qRegisterResourceData)
        (0x01, qt_resource_struct, qt_resource_name, qt_resource_data);
    return 1;
}
开发者ID:SylviaLee0816,项目名称:vanet,代码行数:9,代码来源:qrc_qtpropertybrowser.cpp

示例6: QT_MANGLE_NAMESPACE

QT_END_NAMESPACE


int QT_MANGLE_NAMESPACE(qInitResources_qwt_designer_plugin)()
{
    QT_PREPEND_NAMESPACE(qRegisterResourceData)
        (0x01, qt_resource_struct, qt_resource_name, qt_resource_data);
    return 1;
}
开发者ID:MOCAP,项目名称:MOCAP,代码行数:9,代码来源:qrc_qwt_designer_plugin.cpp

示例7: QT_MANGLE_NAMESPACE

QT_END_NAMESPACE


int QT_MANGLE_NAMESPACE(qInitResources_PointerCoordinates)()
{
    QT_PREPEND_NAMESPACE(qRegisterResourceData)
        (0x01, qt_resource_struct, qt_resource_name, qt_resource_data);
    return 1;
}
开发者ID:karthiv,项目名称:Star-Buddy,代码行数:9,代码来源:qrc_PointerCoordinates.cpp

示例8: QT_MANGLE_NAMESPACE

QT_END_NAMESPACE


int QT_MANGLE_NAMESPACE(qInitResources_customcompleter)()
{
    QT_PREPEND_NAMESPACE(qRegisterResourceData)
        (0x01, qt_resource_struct, qt_resource_name, qt_resource_data);
    return 1;
}
开发者ID:baka-ai,项目名称:Q-Uma-Download-Manager,代码行数:9,代码来源:qrc_customcompleter.cpp

示例9: QT_MANGLE_NAMESPACE

QT_END_NAMESPACE


int QT_MANGLE_NAMESPACE(qInitResources_desktopservices)()
{
    QT_PREPEND_NAMESPACE(qRegisterResourceData)
        (0x01, qt_resource_struct, qt_resource_name, qt_resource_data);
    return 1;
}
开发者ID:liyfworld,项目名称:ECE497,代码行数:9,代码来源:qrc_desktopservices.cpp

示例10: QT_MANGLE_NAMESPACE

QT_END_NAMESPACE


int QT_MANGLE_NAMESPACE(qInitResources_beryl_svgtoggleswitch)()
{
    QT_PREPEND_NAMESPACE(qRegisterResourceData)
        (0x01, qt_resource_struct, qt_resource_name, qt_resource_data);
    return 1;
}
开发者ID:gsenergin,项目名称:pvbaddon,代码行数:9,代码来源:qrc_beryl_svgtoggleswitch.cpp

示例11: main

QT_END_NAMESPACE

int main(int argc, char *argv[])
{
    // rcc uses a QHash to store files in the resource system.
    // we must force a certain hash order when testing or tst_rcc will fail, see QTBUG-25078
    if (!qEnvironmentVariableIsEmpty("QT_RCC_TEST") && !qt_qhash_seed.testAndSetRelaxed(-1, 0))
        qFatal("Cannot force QHash seed for testing as requested");

    return QT_PREPEND_NAMESPACE(runRcc)(argc, argv);
}
开发者ID:Drakey83,项目名称:steamlink-sdk,代码行数:11,代码来源:main.cpp

示例12: QT_PREPEND_NAMESPACE

AudioEncoderControl::AudioEncoderControl(QObject *parent)
    :QAudioEncoderSettingsControl(parent)
{
    m_session = qobject_cast<AudioCaptureSession*>(parent);

    QT_PREPEND_NAMESPACE(QAudioFormat) fmt;
    fmt.setSampleSize(8);
    fmt.setChannelCount(1);
    fmt.setSampleRate(8000);
    fmt.setSampleType(QT_PREPEND_NAMESPACE(QAudioFormat)::SignedInt);
    fmt.setCodec("audio/pcm");
    fmt.setByteOrder(QAudioFormat::LittleEndian);
    m_session->setFormat(fmt);

    m_settings.setEncodingMode(QMultimedia::ConstantQualityEncoding);
    m_settings.setCodec("audio/pcm");
    m_settings.setBitRate(8000);
    m_settings.setChannelCount(1);
    m_settings.setSampleRate(8000);
    m_settings.setQuality(QMultimedia::LowQuality);
}
开发者ID:Elleo,项目名称:qtmultimedia,代码行数:21,代码来源:audioencodercontrol.cpp

示例13: familyList

static QFontEngine *loadWin(const QFontPrivate *d, int script, const QFontDef &req)
{
    // list of families to try
    QStringList family_list = familyList(req);

    const char *stylehint = styleHint(d->request);
    if (stylehint)
        family_list << QLatin1String(stylehint);

    // append the default fallback font for the specified script
    // family_list << ... ; ###########

    // add the default family
    QString defaultFamily = QApplication::font().family();
    if (! family_list.contains(defaultFamily))
        family_list << defaultFamily;

    // add QFont::defaultFamily() to the list, for compatibility with
    // previous versions
    family_list << QApplication::font().defaultFamily();

    // null family means find the first font matching the specified script
    family_list << QString();

    QtFontDesc desc;
    QFontEngine *fe = 0;
    QList<int> blacklistedFamilies;

    while (!fe) {
        for (int i = 0; i < family_list.size(); ++i) {
            QString family, foundry;
            parseFontName(family_list.at(i), foundry, family);
            FM_DEBUG("loadWin: >>>>>>>>>>>>>>trying to match '%s'", family.toLatin1().data());
            QT_PREPEND_NAMESPACE(match)(script, req, family, foundry, -1, &desc, blacklistedFamilies);
            if (desc.family)
                break;
        }
        if (!desc.family)
            break;
        fe = loadEngine(script, req, d->hdc, d->dpi, d->rawMode, &desc, family_list);
        if (!fe)
            blacklistedFamilies.append(desc.familyIndex);
    }
    return fe;
}
开发者ID:13W,项目名称:phantomjs,代码行数:45,代码来源:qfontdatabase_win.cpp

示例14: isEqualTo

uint QOrganizerCollectionSkeletonEngineId::hash() const
{
    /*
      TODO

      Provide a hash function for your engine-specific id.
      Note that the hash doesn't strictly need to be unique, since isEqualTo()
      ensures that individual id's in a single hash-bucket can be uniquely
      determined; however a better hash function will result in better performance
      because the ids will be distributed more randomly in a hash table.

      In the example implementation below, we could simply return the id, since the
      id is a quint32.  In more complex id classes, however, you may need to
      qHash() individual data members and combine the results somehow.
     */

    return QT_PREPEND_NAMESPACE(qHash)(m_collectionId);
}
开发者ID:robclark,项目名称:qtmobility-1.1.0,代码行数:18,代码来源:qorganizerskeleton.cpp

示例15: qHash

uint qHash(const Locator::FilterEntry &entry)
{
    if (entry.internalData.canConvert(QVariant::String))
        return QT_PREPEND_NAMESPACE(qHash)(entry.internalData.toString());
    return QT_PREPEND_NAMESPACE(qHash)(entry.internalData.constData());
}
开发者ID:ProDataLab,项目名称:qt-creator,代码行数:6,代码来源:locatorsearchutils.cpp


注:本文中的QT_PREPEND_NAMESPACE函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。