本文整理汇总了C++中HostCheckBox::setValue方法的典型用法代码示例。如果您正苦于以下问题:C++ HostCheckBox::setValue方法的具体用法?C++ HostCheckBox::setValue怎么用?C++ HostCheckBox::setValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HostCheckBox
的用法示例。
在下文中一共展示了HostCheckBox::setValue方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: HostCheckBox
static HostCheckBox *KeyboardAccelerators()
{
HostCheckBox *gc = new HostCheckBox("KeyboardAccelerators");
gc->setLabel(QObject::tr("Use Keyboard/Remote Accelerated Buttons"));
gc->setValue(true);
gc->setHelpText(QObject::tr("If this is not set, you will need "
"to use arrow keys to select and activate "
"various functions."));
return gc;
};
示例2: HostCheckBox
static HostCheckBox *UseShowWholeTree()
{
HostCheckBox *gc = new HostCheckBox("ShowWholeTree");
gc->setLabel(QObject::tr("Show entire music tree"));
gc->setValue(false);
gc->setHelpText(QObject::tr("If selected, you can navigate your entire "
"music tree from the playing screen. N.B. Does not work "
"with accelerated buttons disabled"));
return gc;
};
示例3: HostCheckBox
static HostCheckBox *MythArchiveAlwaysUseMythTranscode()
{
HostCheckBox *gc = new HostCheckBox("MythArchiveAlwaysUseMythTranscode");
gc->setLabel(QObject::tr("Always Use Mythtranscode"));
gc->setValue(true);
gc->setHelpText(QObject::tr("If set mpeg2 files will always be passed"
" though mythtranscode to clean up any errors. May help to fix"
" some audio problems. Ignored if 'Use ProjectX' is set."));
return gc;
};
示例4: HostCheckBox
static HostCheckBox *AutoStartFrontend()
{
HostCheckBox *gc = new HostCheckBox("AutoStartFrontend");
gc->setLabel(QObject::tr("Automatically Start mythfrontend"));
gc->setValue(true);
gc->setHelpText(QObject::tr("Mythwelcome will automatically start "
"mythfrontend if it is determined that it was not started to "
"record a program."));
return gc;
};
示例5: HostCheckBox
static HostCheckBox *IgnoreID3Tags()
{
HostCheckBox *gc = new HostCheckBox("Ignore_ID3");
gc->setLabel(QObject::tr("Ignore Metadata Tags"));
gc->setValue(false);
gc->setHelpText(QObject::tr("If set, MythMusic will skip checking the metadata tags "
"in files (ID3 etc) and just try to determine Genre, Artist, "
"Album, and Track number and title from the "
"filename."));
return gc;
};
示例6: HostCheckBox
static HostCheckBox *MythArchiveUseFIFO()
{
HostCheckBox *gc = new HostCheckBox("MythArchiveUseFIFO");
gc->setLabel(QObject::tr("Use FIFOs"));
gc->setValue(true);
gc->setHelpText(QObject::tr("The script will use FIFOs to pass the output"
" of mplex into dvdauthor rather than creating intermediate files."
" Saves time and disk space during multiplex operations but not "
" supported on Windows platform"));
return gc;
};
示例7: HostCheckBox
static HostCheckBox *GameTreeView()
{
HostCheckBox *gc = new HostCheckBox("GameTreeView");
gc->setLabel(MythGameGeneralSettings::tr("Hash filenames in display"));
gc->setValue(0);
gc->setHelpText(MythGameGeneralSettings::tr("Enable hashing of names in "
"the display tree. This can "
"make navigating long lists "
"a little faster"));
return gc;
}
示例8: HostCheckBox
static HostCheckBox *TruncateDeletes()
{
HostCheckBox *hc = new HostCheckBox("TruncateDeletesSlowly");
hc->setLabel(QObject::tr("Delete files slowly"));
hc->setValue(false);
hc->setHelpText(QObject::tr("Some filesystems use a lot of resources when "
"deleting large files. If enabled, this option makes "
"MythTV delete files slowly on this backend to lessen the "
"impact."));
return hc;
};
示例9: HostCheckBox
static HostCheckBox *UseLinkLocal()
{
HostCheckBox *hc = new HostCheckBox("AllowLinkLocal");
hc->setLabel(QObject::tr("Listen on Link-Local addresses"));
hc->setValue(true);
hc->setHelpText(QObject::tr("Enable servers on this machine to listen on "
"link-local addresses. These are auto-configured "
"addresses and not accessible outside the local network. "
"This must be enabled for anything requiring Bonjour to "
"work."));
return hc;
};
示例10: QString
static HostCheckBox *JobAllowUserJob(uint job_num)
{
QString dbStr = QString("JobAllowUserJob%1").arg(job_num);
QString desc = gCoreContext->GetSetting(QString("UserJobDesc%1").arg(job_num));
QString label = QObject::tr("Allow %1 jobs").arg(desc);
HostCheckBox *bc = new HostCheckBox(dbStr);
bc->setLabel(label);
bc->setValue(false);
// FIXME:
// It would be nice to disable inactive jobs,
// but enabling them currently requires a restart of mythtv-setup
// after entering the job command string. Will improve this logic later:
// if (QString(gCoreContext->GetSetting(QString("UserJob%1").arg(job_num)))
// .length() == 0)
// bc->setEnabled(false);
bc->setHelpText(QObject::tr("If enabled, allow jobs of this type to "
"run on this backend."));
return bc;
}