From 89daffaaef626c82f0a7822b1679d0703990667b Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Thu, 18 Jul 2013 22:20:34 -0700 Subject: [PATCH] vrplayer: added help about and fix seg fault when closing --- vrplayer/mainwindow.cpp | 10 ++++++++++ vrplayer/mainwindow.h | 2 ++ vrplayer/mainwindow.ui | 12 ++++++++++++ 3 files changed, 24 insertions(+) diff --git a/vrplayer/mainwindow.cpp b/vrplayer/mainwindow.cpp index ec2d338a..4c8ea2b1 100644 --- a/vrplayer/mainwindow.cpp +++ b/vrplayer/mainwindow.cpp @@ -483,3 +483,13 @@ void MainWindow::onMoveCompleted() interface->setVcrOp(VCR_PLAY); vcrFlag = VCR_PLAY; } + +void MainWindow::on_actionAbout_triggered() +{ + QMessageBox msgBox; + + msgBox.setText("VRPlayer version 1.2"); + msgBox.setStandardButtons(QMessageBox::Ok); + msgBox.setDefaultButton(QMessageBox::Ok); + msgBox.exec(); +} diff --git a/vrplayer/mainwindow.h b/vrplayer/mainwindow.h index 56f94edb..50663408 100644 --- a/vrplayer/mainwindow.h +++ b/vrplayer/mainwindow.h @@ -79,6 +79,8 @@ private slots: void onSliderActionTriggered(int value); void onMoveCompleted(); + void on_actionAbout_triggered(); + protected: void resizeEvent(QResizeEvent *e); void closeEvent(QCloseEvent *e); diff --git a/vrplayer/mainwindow.ui b/vrplayer/mainwindow.ui index af924894..b9c2a85c 100644 --- a/vrplayer/mainwindow.ui +++ b/vrplayer/mainwindow.ui @@ -31,7 +31,14 @@ + + + Help + + + + @@ -55,6 +62,11 @@ Exit application + + + About + +