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


C++ ConfigObject::setStrShowOn方法代码示例

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


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

示例1: slotMathConstantKItemChanged

void ConfigTreeObject_Math::slotMathConstantKItemChanged()
{
    Menu *menu = static_cast<Menu *>(this->sender());
    QString strName = menu->objectName();
    ConfigObject *pConfigObj = ConfigTreeObject::getConfigObject(QString(MATH_DELEGATE_CONSTANTNUM_X).arg(strName));
    QString valueStr = pConfigObj->getData().toString().toUpper();
    pConfigObj->setStrShowOn(valueStr);
}
开发者ID:urielyan,项目名称:F270,代码行数:8,代码来源:configtreeobject_Math.cpp

示例2: slotEventAction_GrpNumchanged

void ConfigTreeObject_EventAction::slotEventAction_GrpNumchanged()
{
    ConfigObject *pObj = ConfigTreeObject::getConfigObject(EVENT_DELEGATE_GRPNUM);
    if(pObj) {
        quint32 groupNum = pObj->getData().toUInt();
        pObj->setStrShowOn(QString("%1").arg(groupNum+1));
    }
}
开发者ID:urielyan,项目名称:F270,代码行数:8,代码来源:configtreeobject_EventAction.cpp

示例3: updateAllConstKInfoMenu

void ConfigTreeObject_Math::updateAllConstKInfoMenu()
{
    ConfigObject *pConfigObj;
    QString valueStr;
    for(int i=0;i<100;++i) {
        pConfigObj = ConfigTreeObject::getConfigObject(QString(MATH_DELEGATE_CONSTANTNUM_INDEX).arg(i+1, 3, 10, QChar('0')));
        valueStr = pConfigObj->getData().toString().toUpper();
        pConfigObj->setStrShowOn(valueStr);
    }
}
开发者ID:urielyan,项目名称:F270,代码行数:10,代码来源:configtreeobject_Math.cpp

示例4: slotReportChannelNumberChange

void ConfigTreeObject_Report::slotReportChannelNumberChange()
{
    QString num;
    ConfigObject *pObj = ConfigTreeObject::getConfigObject(Config_Report_Delegate_ReportChannnel_Number);

    if(pObj){
        num = pObj->getData().toString();
        pObj->setStrShowOn(QString("%1").arg(num.toInt()+1));
    }
}
开发者ID:urielyan,项目名称:F270,代码行数:10,代码来源:configtreeobject_Report.cpp

示例5: slotMathLast_chanSelectchanged

void ConfigTreeObject_Math::slotMathLast_chanSelectchanged()
{
    QString chanNumF;
    QString chanNumL;
    ConfigObject *pObj = ConfigTreeObject::getConfigObject(MATH_DELEGATE_FIRSTCHAN);
    ConfigObject *qObj = ConfigTreeObject::getConfigObject(MATH_DELEGATE_LASTCHAN);

    if(pObj && qObj){
        chanNumL = qObj->getData().toString();
        chanNumF = pObj->getData().toString();
        int value = QString::compare(chanNumF, chanNumL);
        if(value <= 0) {
            qObj->setStrShowOn(chanNumL);
        }
        else{
            qObj->setStrShowOn(chanNumL);
            pObj->changeData(chanNumL ,false);
        }
    }
}
开发者ID:urielyan,项目名称:F270,代码行数:20,代码来源:configtreeobject_Math.cpp

示例6: slotReportBasicTimeMinuteChange

void ConfigTreeObject_Report::slotReportBasicTimeMinuteChange()
{
    QString num;

    ConfigObject *pObj = ConfigTreeObject::getConfigObject(Config_Report_Delegate_Basic_Time_Minute);


    if(pObj){
        num = pObj->getData().toString();

        pObj->setStrShowOn(QString("%1").arg(num.toInt()));
    }
}
开发者ID:urielyan,项目名称:F270,代码行数:13,代码来源:configtreeobject_Report.cpp

示例7: slotMathFirst_chanSelectchanged

void ConfigTreeObject_Math::slotMathFirst_chanSelectchanged()
{
    QString chanNumF;
    QString chanNumL;
    ConfigObject *pObj = ConfigTreeObject::getConfigObject(MATH_DELEGATE_FIRSTCHAN);
    ConfigObject *qObj = ConfigTreeObject::getConfigObject(MATH_DELEGATE_LASTCHAN);

    if(pObj && qObj){
        chanNumF = pObj->getData().toString();
        chanNumL = qObj->getData().toString();

        pObj->setStrShowOn(chanNumF);
        qObj->changeData(chanNumF, false);
    }
}
开发者ID:urielyan,项目名称:F270,代码行数:15,代码来源:configtreeobject_Math.cpp


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