本文整理汇总了C++中GlobalSpinBox类的典型用法代码示例。如果您正苦于以下问题:C++ GlobalSpinBox类的具体用法?C++ GlobalSpinBox怎么用?C++ GlobalSpinBox使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了GlobalSpinBox类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GlobalSpinBox
static GlobalSpinBox *WOLbackendConnectRetry()
{
GlobalSpinBox *gc = new GlobalSpinBox("WOLbackendConnectRetry", 1, 60, 1);
gc->setLabel(QObject::tr("Wake attempts"));
gc->setHelpText(QObject::tr("Number of times the frontend will try to wake "
"up the master backend."));
gc->setValue(5);
return gc;
};
示例2: GlobalSpinBox
static GlobalSpinBox *MythFillMinHour()
{
GlobalSpinBox *bs = new GlobalSpinBox("MythFillMinHour", 0, 23, 1);
bs->setLabel(QObject::tr("Guide data program execution start"));
bs->setValue(0);
bs->setHelpText(QObject::tr("This setting and the following one define a "
"time period when the guide data program is allowed "
"to run. For example, setting start to 11 and "
"end to 13 would mean that the program would only "
"run between 11:00 AM and 1:59 PM."));
return bs;
}