Changeset - b616fb48842c
[Not reviewed]
snapshots
0 1 0
Hasan Yavuz Ă–ZDERYA - 10 years ago 2015-09-20 11:10:44
hy@ozderya.net
call the inherited implementation of closeEvent
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
snapshotview.cpp
Show inline comments
 
@@ -13,26 +13,27 @@ SnapShotView::SnapShotView(QWidget *pare
 

	
 
    for (unsigned ci = 0; ci < numOfChannels; ci++)
 
    {
 
        QwtPlotCurve* curve = new QwtPlotCurve();
 
        curves.append(curve);
 
        curve->setSamples(snapShot->data[ci]);
 
        curve->setPen(Plot::makeColor(ci));
 
        curve->attach(ui->plot);
 
    }
 

	
 
    _snapShot = snapShot;
 
}
 

	
 
SnapShotView::~SnapShotView()
 
{
 
    for (auto curve : curves)
 
    {
 
        delete curve;
 
    }
 
    delete ui;
 
}
 

	
 
void SnapShotView::closeEvent(QCloseEvent *event)
 
{
 
    QMainWindow::closeEvent(event);
 
    emit closed();
 
}
0 comments (0 inline, 0 general)