本文整理汇总了C++中ConfigurationGroup::setLabel方法的典型用法代码示例。如果您正苦于以下问题:C++ ConfigurationGroup::setLabel方法的具体用法?C++ ConfigurationGroup::setLabel怎么用?C++ ConfigurationGroup::setLabel使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ConfigurationGroup
的用法示例。
在下文中一共展示了ConfigurationGroup::setLabel方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: VerticalConfigurationGroup
LNBConfig::LNBConfig(DiSEqCDevLNB &lnb)
{
ConfigurationGroup *group =
new VerticalConfigurationGroup(false, false);
group->setLabel(DeviceTree::tr("LNB Configuration"));
group->addChild(new DeviceDescrSetting(lnb));
LNBPresetSetting *preset = new LNBPresetSetting(lnb);
group->addChild(preset);
m_type = new LNBTypeSetting(lnb);
group->addChild(m_type);
m_lof_switch = new LNBLOFSwitchSetting(lnb);
group->addChild(m_lof_switch);
m_lof_lo = new LNBLOFLowSetting(lnb);
group->addChild(m_lof_lo);
m_lof_hi = new LNBLOFHighSetting(lnb);
group->addChild(m_lof_hi);
m_pol_inv = new LNBPolarityInvertedSetting(lnb);
group->addChild(m_pol_inv);
connect(m_type, SIGNAL(valueChanged(const QString&)),
this, SLOT( UpdateType( void)));
connect(preset, SIGNAL(valueChanged(const QString&)),
this, SLOT( SetPreset( const QString&)));
addChild(group);
}
示例2: VerticalConfigurationGroup
SCRConfig::SCRConfig(DiSEqCDevSCR &scr) : m_scr(scr)
{
ConfigurationGroup *group =
new VerticalConfigurationGroup(false, false);
group->setLabel(DeviceTree::tr("Unicable Configuration"));
group->addChild(new SCRUserBandSetting(scr));
group->addChild(new SCRFrequencySetting(scr));
group->addChild(new SCRPINSetting(scr));
group->addChild(new DeviceRepeatSetting(scr));
addChild(group);
}
示例3: addChild
MythGamePlayerSettings::MythGamePlayerSettings()
{
// must be first
addChild(id = new ID());
ConfigurationGroup *group = new VerticalConfigurationGroup(false, false);
group->setLabel(tr("Game Player Setup"));
group->addChild(name = new Name(*this));
group->addChild(new GameType(*this));
group->addChild(new Command(*this));
group->addChild(new RomPath(*this));
group->addChild(new WorkingDirPath(*this));
group->addChild(new Extensions(*this));
group->addChild(new AllowMultipleRoms(*this));
addChild(group);
};
示例4: addChild
ProfileGroup::ProfileGroup()
{
// This must be first because it is needed to load/save the other settings
addChild(id = new ID());
addChild(is_default = new Is_default(*this));
ConfigurationGroup* profile = new VerticalConfigurationGroup(false);
profile->setLabel(QObject::tr("ProfileGroup"));
profile->addChild(name = new Name(*this));
CardInfo *cardInfo = new CardInfo(*this);
profile->addChild(cardInfo);
CardType::fillSelections(cardInfo);
host = new HostName(*this);
profile->addChild(host);
host->fillSelections();
addChild(profile);
};