vrplayer: added help about and fix seg fault when closing

This commit is contained in:
Jay Sorg 2013-07-18 22:20:34 -07:00
parent 4322a136f1
commit 89daffaaef
3 changed files with 24 additions and 0 deletions

View File

@ -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();
}

View File

@ -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);

View File

@ -31,7 +31,14 @@
<addaction name="separator"/>
<addaction name="actionExit"/>
</widget>
<widget class="QMenu" name="menuHelp">
<property name="title">
<string>Help</string>
</property>
<addaction name="actionAbout"/>
</widget>
<addaction name="menuFile"/>
<addaction name="menuHelp"/>
</widget>
<widget class="QToolBar" name="mainToolBar">
<attribute name="toolBarArea">
@ -55,6 +62,11 @@
<string>Exit application</string>
</property>
</action>
<action name="actionAbout">
<property name="text">
<string>About</string>
</property>
</action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources/>