# HG changeset patch # User Hasan Yavuz Ă–ZDERYA # Date 2015-09-20 09:56:52 # Node ID e421d52f198e00cc9c9a03d45de6c5a215349b15 # Parent 099df007158dc96efd30951d48671c7b2fe7ffe6 code cleanup and remove test messages 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();