• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ QT_PREPEND_NAMESPACE函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: main

QT_END_NAMESPACE

int main(int argc, char **argv)
{
    return QT_PREPEND_NAMESPACE(runQMake)(argc, argv);
}
开发者ID:30114,项目名称:phantomjs,代码行数:6,代码来源:main.cpp


示例17: QT_MANGLE_NAMESPACE

int QT_MANGLE_NAMESPACE(qCleanupResources_treemodelcompleter)()
{
    QT_PREPEND_NAMESPACE(qUnregisterResourceData)
       (0x01, qt_resource_struct, qt_resource_name, qt_resource_data);
    return 1;
}
开发者ID:venkatarajasekhar,项目名称:ECE497,代码行数:6,代码来源:qrc_treemodelcompleter.cpp


示例18: QT_MANGLE_NAMESPACE

int QT_MANGLE_NAMESPACE(qCleanupResources_edit_hole)()
{
    QT_PREPEND_NAMESPACE(qUnregisterResourceData)
       (0x01, qt_resource_struct, qt_resource_name, qt_resource_data);
    return 1;
}
开发者ID:laiyinping,项目名称:meshlab,代码行数:6,代码来源:qrc_edit_hole.cpp


示例19: qHash

static uint qHash(const StringHolder &sh)
{
    return QT_PREPEND_NAMESPACE(qHash)(sh.h, 0);
}
开发者ID:KeeganRen,项目名称:qt-creator,代码行数:4,代码来源:id.cpp


示例20: qHash

 inline uint qHash(Hashable h, uint seed = 0)
 { return QT_PREPEND_NAMESPACE(qHash)(h.i, seed); }
开发者ID:OniLink,项目名称:Qt5-Rehost,代码行数:2,代码来源:tst_qhashfunctions.cpp



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ QT_TRANSLATE_NOOP函数代码示例发布时间:2022-05-30
下一篇:
C++ QT_MOC_LITERAL函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap