Changeset - cb639cefd201
[Not reviewed]
default
0 1 0
Hasan Yavuz Ă–ZDERYA - 10 years ago 2015-07-23 23:16:47
hy@ozderya.net
unzoom when scales changed
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
mainwindow.cpp
Show inline comments
 
@@ -489,6 +489,8 @@ void MainWindow::onAutoScaleChecked(bool
 
        ui->spYmin->setEnabled(true);
 
        ui->spYmax->setEnabled(true);
 

	
 
        zoomer->zoom(0); // unzoom first, since zoomer plays with scales
 

	
 
        ui->plot->setAxisScale(QwtPlot::yLeft, ui->spYmin->value(),
 
                               ui->spYmax->value());
 
    }
 
@@ -498,6 +500,7 @@ void MainWindow::onYScaleChanged()
 
{
 
    ui->plot->setAxisScale(QwtPlot::yLeft, ui->spYmin->value(),
 
                           ui->spYmax->value());
 
    zoomer->zoom(0); // unzoom first, since zoomer plays with scales
 
}
 

	
 
void MainWindow::onNumberFormatButtonToggled(int numberFormatId, bool checked)
0 comments (0 inline, 0 general)