Skip to content

Commit

Permalink
Use the override keyword.
Browse files Browse the repository at this point in the history
Include the Visualizer header file.
  • Loading branch information
adeas31 committed Dec 22, 2016
1 parent 8f6fbc6 commit 0f985b2
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
8 changes: 6 additions & 2 deletions OMEdit/OMEditGUI/Animation/AnimationWindow.cpp
Expand Up @@ -36,8 +36,6 @@
#include "Options/OptionsDialog.h"
#include "Visualizer.h"

#include <QGridLayout>

/*!
* \class AnimationWindow
* \brief A QMainWindow for animation.
Expand All @@ -52,13 +50,19 @@ AnimationWindow::AnimationWindow(QWidget *pParent)
createActions();
}

/*!
* \brief AnimationWindow::~AnimationWindow
*/
AnimationWindow::~AnimationWindow()
{
if (mpVisualizer) {
delete mpVisualizer;
}
}

/*!
* \brief AnimationWindow::createActions
*/
void AnimationWindow::createActions()
{
AbstractAnimationWindow::createActions();
Expand Down
2 changes: 1 addition & 1 deletion OMEdit/OMEditGUI/Animation/AnimationWindow.h
Expand Up @@ -43,7 +43,7 @@ class AnimationWindow : public AbstractAnimationWindow
public:
AnimationWindow(QWidget *pParent);
~AnimationWindow();
void createActions();
void createActions() override;
};

#endif // ANIMATIONWINDOW_H
15 changes: 15 additions & 0 deletions OMEdit/OMEditGUI/Animation/ThreeDViewer.cpp
Expand Up @@ -32,20 +32,35 @@
*/

#include "ThreeDViewer.h"
#include "Visualizer.h"

/*!
* \class ThreeDViewer
* \brief A QMainWindow for 3d view.
*/
/*!
* \brief ThreeDViewer::ThreeDViewer
* \param pParent
*/
ThreeDViewer::ThreeDViewer(QWidget *pParent)
: AbstractAnimationWindow(pParent)
{
createActions();
}

/*!
* \brief ThreeDViewer::~ThreeDViewer
*/
ThreeDViewer::~ThreeDViewer()
{
if (mpVisualizer) {
delete mpVisualizer;
}
}

/*!
* \brief ThreeDViewer::createActions
*/
void ThreeDViewer::createActions()
{
AbstractAnimationWindow::createActions();
Expand Down
2 changes: 1 addition & 1 deletion OMEdit/OMEditGUI/Animation/ThreeDViewer.h
Expand Up @@ -42,7 +42,7 @@ class ThreeDViewer : public AbstractAnimationWindow
public:
ThreeDViewer(QWidget *pParent);
~ThreeDViewer();
void createActions();
void createActions() override;
};

#endif // THREEDVIEWER_H

0 comments on commit 0f985b2

Please sign in to comment.