本文整理汇总了C++中HostSpinBox::setValue方法的典型用法代码示例。如果您正苦于以下问题:C++ HostSpinBox::setValue方法的具体用法?C++ HostSpinBox::setValue怎么用?C++ HostSpinBox::setValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HostSpinBox
的用法示例。
在下文中一共展示了HostSpinBox::setValue方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: 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;
};
示例2: 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;
};
示例3: 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;
};
示例4: 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;
};