diff --git a/mainwindow.cpp b/mainwindow.cpp --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -733,7 +733,6 @@ void MainWindow::messageHandler(QtMsgTyp void MainWindow::takeSnapShot() { - qDebug() << "taking a snopshot yay!"; QString name = QTime::currentTime().toString("'Snapshot ['HH:mm:ss']'"); auto snapShot = new SnapShot(this, name); diff --git a/snapshot.cpp b/snapshot.cpp --- a/snapshot.cpp +++ b/snapshot.cpp @@ -43,7 +43,6 @@ void SnapShot::show() { if (view == NULL) { - qDebug() << "view == NULL"; view = new SnapShotView(mainWindow, this); connect(view, &SnapShotView::closed, this, &SnapShot::viewClosed); } @@ -52,18 +51,12 @@ void SnapShot::show() view->raise(); } -void SnapShot::hide() -{ - -} - void SnapShot::viewClosed() { delete view; view = NULL; } - void SnapShot::onDeleteTriggered() { emit deleteRequested(this); diff --git a/snapshot.h b/snapshot.h --- a/snapshot.h +++ b/snapshot.h @@ -22,10 +22,6 @@ public: QString name(); -public slots: - void show(); - void hide(); - signals: void deleteRequested(SnapShot*); @@ -37,6 +33,7 @@ private: SnapShotView* view; private slots: + void show(); void viewClosed(); void onDeleteTriggered();