From 4dcbca01c0dec6a9befd9cfbcef287defee1c802 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Mon, 23 Dec 2013 22:51:30 +0000 Subject: [PATCH] Zoom to really large .. because when we're comparing we'll need it. --- src/AllPlotWindow.cpp | 8 +++++--- src/AllPlotWindow.h | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/AllPlotWindow.cpp b/src/AllPlotWindow.cpp index 61051bd42..e72e2805f 100644 --- a/src/AllPlotWindow.cpp +++ b/src/AllPlotWindow.cpp @@ -131,7 +131,7 @@ AllPlotWindow::AllPlotWindow(Context *context) : stackWidth = 20; stackZoomSlider = new QSlider(Qt::Horizontal,this); stackZoomSlider->setMinimum(0); - stackZoomSlider->setMaximum(6); + stackZoomSlider->setMaximum(7); stackZoomSlider->setTickInterval(1); stackZoomSlider->setValue(3); cl1->addRow(new QLabel("Stack Zoom"), stackZoomSlider); @@ -1677,11 +1677,11 @@ AllPlotWindow::setStackWidth(int width) // compatibility to ensure we always use a size that we are // expecting and set the slider to the appropriate value int i=0; - for (; i<7; i++) // there are 7 pre-set sizes + for (; i<8; i++) // there are 8 pre-set sizes if (width <= stackZoomWidth[i]) break; // we never found it - if (i == 7) i=6; + if (i == 8) i=7; // did anything actually change? if (stackZoomWidth[i] == stackWidth) return; @@ -1786,8 +1786,10 @@ AllPlotWindow::forceSetupSeriesStackPlots() void AllPlotWindow::resizeSeriesPlots() { + seriesstackFrame->setUpdatesEnabled(false); foreach (AllPlot *plot, seriesPlots) plot->setFixedHeight(100 + (stackWidth *3)); + seriesstackFrame->setUpdatesEnabled(true); } void diff --git a/src/AllPlotWindow.h b/src/AllPlotWindow.h index fa82676a6..e51d509c6 100644 --- a/src/AllPlotWindow.h +++ b/src/AllPlotWindow.h @@ -191,9 +191,9 @@ class AllPlotWindow : public GcChartWindow QWidget *seriesstackWidget; // stack zoomer for setting stack width - // has 7 settings from 0 - 6 + // has 8 settings from 0 - 7 QSlider *stackZoomSlider; - const int stackZoomWidth[7] = { 5, 10, 15, 20, 30, 45, 60 }; + const int stackZoomWidth[8] = { 5, 10, 15, 20, 30, 45, 60, 120 }; // Normal view QScrollArea *allPlotFrame;