Ticket #6745: livetvidletimeout.diff

File livetvidletimeout.diff, 1022 bytes (added by robert.mcnamara@…, 15 years ago)

Add live TV idle timeout config.

  • programs/mythfrontend/globalsettings.cpp

     
    21262126    return gc;
    21272127}
    21282128
     2129static HostSpinBox *LiveTVIdleTimeout()
     2130{
     2131    HostSpinBox *gs = new HostSpinBox("LiveTVIdleTimeout", 0, 3600, 1);
     2132    gs->setLabel(QObject::tr("Live TV idle timeout"));
     2133    gs->setValue(0);
     2134    gs->setHelpText(QObject::tr(
     2135                        "Idle timeout for Live TV in minutes. "
     2136                        "0 disables the timeout."));
     2137    return gs;
     2138}
     2139
    21292140static HostCheckBox *GeneratePreviewPixmaps()
    21302141{
    21312142    HostCheckBox *gc = new HostCheckBox("GeneratePreviewPixmaps");
     
    47264737    columns->addChild(column2);
    47274738
    47284739    general1->addChild(columns);
     4740    general1->addChild(LiveTVIdleTimeout());
    47294741    general1->addChild(AlwaysStreamFiles());
    47304742#ifdef USING_OPENGL_VSYNC
    47314743    general1->addChild(UseOpenGLVSync());