本文整理汇总了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);
}
示例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));
}
}
示例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);
}
}
示例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));
}
}
示例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);
}
}
}
示例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()));
}
}
示例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);
}
}