本文整理汇总了C++中HostSpinBox::setLabel方法的典型用法代码示例。如果您正苦于以下问题:C++ HostSpinBox::setLabel方法的具体用法?C++ HostSpinBox::setLabel怎么用?C++ HostSpinBox::setLabel使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HostSpinBox
的用法示例。
在下文中一共展示了HostSpinBox::setLabel方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: availableTransitions
SlideSettings::SlideSettings() : VerticalConfigurationGroup()
{
setLabel(tr("Slideshow"));
HostComboBox *tranBox = new HostComboBox("GalleryTransitionType");
tranBox->setLabel(tr("Transition"));
tranBox->setHelpText(tr("Effect to use between slides"));
// Initialise selected transition
TransitionRegistry availableTransitions(GetMythPainter()->SupportsAnimation());
TransitionMap transitions = availableTransitions.GetAll();
QMapIterator<int, Transition*> i(transitions);
while (i.hasNext())
{
i.next();
tranBox->addSelection(i.value()->objectName(), QString::number(i.key()));
}
addChild(tranBox);
HostSpinBox *slide = new HostSpinBox("GallerySlideShowTime", 100, 60000, 100);
slide->setLabel(tr("Slide Duration (ms)"));
slide->setHelpText(tr("The time that a slide is displayed (between transitions), "
"in milliseconds."));
addChild(slide);
HostSpinBox *transition = new HostSpinBox("GalleryTransitionTime", 100, 60000, 100);
transition->setLabel(tr("Transition Duration (ms)"));
transition->setHelpText(tr("The time that each transition lasts, in milliseconds."));
addChild(transition);
}
示例2: HostSpinBox
static HostSpinBox *SlideshowOpenGLTransitionLength()
{
HostSpinBox *gc = new HostSpinBox(
"SlideshowOpenGLTransitionLength", 500, 120000, 500);
gc->setLabel(QObject::tr("Duration of OpenGL Transition (milliseconds)"));
gc->setValue(2000);
return gc;
};
示例3: HostSpinBox
static HostSpinBox *SetSearchMaxResultsReturned()
{
HostSpinBox *gc = new HostSpinBox("MaxSearchResults", 0, 20000, 100);
gc->setLabel(QObject::tr("Maximum Search Results"));
gc->setValue(300);
gc->setHelpText(QObject::tr("Used to limit the number of results "
"returned when using the search feature."));
return gc;
};
示例4: HostSpinBox
static HostSpinBox *MythArchiveDriveSpeed()
{
HostSpinBox *gc = new HostSpinBox("MythArchiveDriveSpeed", 0, 48, 1);
gc->setLabel(QObject::tr("DVD Drive Write Speed"));
gc->setValue(0);
gc->setHelpText(QObject::tr("This is the write speed to use when burning a DVD. "
"Set to 0 to allow growisofs to choose the fastest available speed."));
return gc;
};
示例5: HostSpinBox
static HostSpinBox *JobQueueCheckFrequency()
{
HostSpinBox *gc = new HostSpinBox("JobQueueCheckFrequency", 5, 300, 5);
gc->setLabel(QObject::tr("Job Queue check frequency (secs)"));
gc->setHelpText(QObject::tr("When looking for new jobs to process, the "
"Job Queue will wait this many seconds between checks."));
gc->setValue(60);
return gc;
};