    stretch_label->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
    toolbar->addWidget(stretch_label);
  
    range_lb_action = toolbar->addWidget(range_lb = new QLabel(this));
    range_slider = new QSlider(Qt::Horizontal, this);
    range_slider->setMaximumWidth(200);
    range_slider->setToolTip(tr("Set the chart range"));
    range_slider->setRange(1, settings.max_cached_minutes * 60);
    range_slider->setSingleStep(1);
    range_slider->setPageStep(60);  // 1 min
 
</s> remove   max_chart_range = settings.chart_range = value;
 </s> add   max_chart_range = settings.chart_range = range_slider->value();
  range_slider = new LogSlider(1000, Qt::Horizontal, this);
    stretch_label->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
    toolbar->addWidget(stretch_label);
  
    range_lb_action = toolbar->addWidget(range_lb = new QLabel(this));
  range_slider = new LogSlider(1000, Qt::Horizontal, this);
    range_slider->setMaximumWidth(200);
    range_slider->setToolTip(tr("Set the chart range"));
    range_slider->setRange(1, settings.max_cached_minutes * 60);
    range_slider->setSingleStep(1);
    range_slider->setPageStep(60);  // 1 min
keep keep keep keep replace keep keep keep keep keep
 cabana: extend max chart range to 30 minutes (#27555) 
tools/cabana/chartswidget.cc