Changeset - da58111e7ca9
[Not reviewed]
Hasan Yavuz Ă–ZDERYA - 9 years ago 2017-03-13 04:45:34
hy@ozderya.net
fix build problems
2 files changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/mainwindow.cpp
Show inline comments
 
@@ -140,7 +140,7 @@ MainWindow::MainWindow(QWidget *parent) 
 
            plotMan, &PlotManager::onNumOfSamplesChanged);
 

	
 
    connect(&plotControlPanel, &PlotControlPanel::yScaleChanged,
 
            plotMan, &PlotManager::setAxis);
 
            plotMan, &PlotManager::setYAxis);
 

	
 
    QObject::connect(ui->actionClear, SIGNAL(triggered(bool)),
 
                     this, SLOT(clearPlot()));
 
@@ -212,8 +212,8 @@ MainWindow::MainWindow(QWidget *parent) 
 
    }
 

	
 
    // init auto scale
 
    plotMan->setAxis(plotControlPanel.autoScale(),
 
                     plotControlPanel.yMin(), plotControlPanel.yMax());
 
    plotMan->setYAxis(plotControlPanel.autoScale(),
 
                      plotControlPanel.yMin(), plotControlPanel.yMax());
 

	
 
    // Init sps (sample per second) counter
 
    spsLabel.setText("0sps");
src/plotmanager.cpp
Show inline comments
 
@@ -406,7 +406,7 @@ void PlotManager::darkBackground(bool en
 
    }
 
}
 

	
 
void PlotManager::setAxis(bool autoScaled, double yAxisMin, double yAxisMax)
 
void PlotManager::setYAxis(bool autoScaled, double yAxisMin, double yAxisMax)
 
{
 
    _autoScaled = autoScaled;
 
    _yMin = yAxisMin;
0 comments (0 inline, 0 general)