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


C++ const_iterator::toLower方法代码示例

本文整理汇总了C++中qstringlist::const_iterator::toLower方法的典型用法代码示例。如果您正苦于以下问题:C++ const_iterator::toLower方法的具体用法?C++ const_iterator::toLower怎么用?C++ const_iterator::toLower使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在qstringlist::const_iterator的用法示例。


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

示例1: SetHosts

void VideoScannerThread::SetHosts(const QStringList &hosts)
{
    m_liveSGHosts.clear();
    QStringList::const_iterator iter = hosts.begin();
    for (; iter != hosts.end(); ++iter)
        m_liveSGHosts << iter->toLower();
}
开发者ID:DaveDaCoda,项目名称:mythtv,代码行数:7,代码来源:videoscan.cpp

示例2: fetchFromSettings

void CCardSearchParameters::fetchFromSettings(QSettings &settings)
{
    settings.beginGroup("searchOptions");
    mName = settings.value("name", mName).toString();
    mLwCsName = mName.toLower();
    mSkill = settings.value("skill", mSkill).toStringList();
    mLwCsSkill.clear();
    for (QStringList::const_iterator i = mSkill.begin(); i != mSkill.end(); ++i)
    {
        mLwCsSkill.push_back(i->toLower());
    }
    mRarityMask = settings.value("rarityMask", mRarityMask).toInt();
    mTypeMask = settings.value("typeMask", mTypeMask).toInt();
    mFactionMask = settings.value("factionMask", mFactionMask).toInt();
    mTimerMask = settings.value("timerMask", mTimerMask).toInt();
    mAttackCompare = static_cast<EComparisonMethod>(settings.value("attackCompare").toInt());
    mHpCompare = static_cast<EComparisonMethod>(settings.value("hpCompare").toInt());
    mAttackValue = settings.value("attackValue", mAttackValue).toInt();
    mHpValue = settings.value("hpValue", mHpValue).toInt();  
    mUpgradeLevel = settings.value("upgradeLevel", mUpgradeLevel).toInt();
    mCheckUpgradeLevel = settings.value("checkUpgradeLevel", mCheckUpgradeLevel).toBool();
    mIsUnique = settings.value("checkUnique", mIsUnique).toBool();
    settings.endGroup();
}
开发者ID:WarrantyVoid,项目名称:tyrant-optimize-gui,代码行数:24,代码来源:CCardSearchParameters.cpp

示例3: fetchFromUi

void CCardSearchParameters::fetchFromUi(const Ui::CardSearchWidget &ui)
{
    mName = ui.nameBox->currentText().trimmed();
    mLwCsName = mName.toLower();
    mSkill = ui.skillBox->currentText().split("+", QString::SkipEmptyParts);
    mLwCsSkill.clear();
    for (QStringList::const_iterator i = mSkill.begin(); i != mSkill.end(); ++i)
    {
        mLwCsSkill.push_back(i->toLower().trimmed());
    }

    mRarityMask = 0;
    mRarityMask |= ui.legendaryButton->isChecked() ? 0x1 : 0;
    mRarityMask |= ui.rareButton->isChecked() ? 0x2 : 0;
    mRarityMask |= ui.uncommonButton->isChecked() ? 0x4 : 0;
    mRarityMask |= ui.commonButton->isChecked() ? 0x8 : 0;

    mTypeMask = 0;
    mTypeMask |= ui.assaultButton->isChecked() ? 0x1 : 0;
    mTypeMask |= ui.structureButton->isChecked() ? 0x2 : 0;
    mTypeMask |= ui.commanderButton->isChecked() ? 0x4 : 0;
    mTypeMask |= ui.actionButton->isChecked() ? 0x8 : 0;

    mFactionMask = 0;
    mFactionMask |= ui.bloodthirstyButton->isChecked() ? 0x1 : 0;
    mFactionMask |= ui.imperialButton->isChecked() ? 0x2 : 0;
    mFactionMask |= ui.raiderButton->isChecked() ? 0x4 : 0;
    mFactionMask |= ui.righteousButton->isChecked() ? 0x8 : 0;
    mFactionMask |= ui.xenoButton->isChecked() ? 0x10 : 0;

    mTimerMask = 0;
    mTimerMask |= ui.timer0Button->isChecked() ? 0x1 : 0;
    mTimerMask |= ui.timer1Button->isChecked() ? 0x2 : 0;
    mTimerMask |= ui.timer2Button->isChecked() ? 0x4 : 0;
    mTimerMask |= ui.timer3Button->isChecked() ? 0x8 : 0;
    mTimerMask |= ui.timer4Button->isChecked() ? 0x10 : 0;

    switch(ui.attackStackedWidget->currentIndex())
    {
    case 1: mAttackCompare = ECompareEqual; break;
    case 2: mAttackCompare = ECompareEqualOrLesser; break;
    default: mAttackCompare = ECompareEqualOrLarger; break;
    }
    switch(ui.hpStackedWidget->currentIndex())
    {
    case 1: mHpCompare = ECompareEqual; break;
    case 2: mHpCompare = ECompareEqualOrLesser; break;
    default: mHpCompare = ECompareEqualOrLarger; break;
    }

    mAttackValue = ui.attackSlider->value();
    mHpValue = ui.hpSlider->value();

    mCheckUpgradeLevel = true;
    switch(ui.upgradeStackedWidget->currentIndex())
    {
    case 1: mUpgradeLevel = 0; break;
    case 2: mUpgradeLevel = 1; break;
    case 3: mUpgradeLevel = 2; break;
    default: mUpgradeLevel = 0xff; mCheckUpgradeLevel = false; break;
    }
    mIsUnique = ui.uniqueButton->isChecked();
}
开发者ID:WarrantyVoid,项目名称:tyrant-optimize-gui,代码行数:63,代码来源:CCardSearchParameters.cpp


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