Fixup MainWindow refactor Part 2

.. fix workoutwizard context hack
.. fix modelplot (3d) code that was missed
This commit is contained in:
Mark Liversedge
2013-07-11 18:10:37 +01:00
parent 05f1d577db
commit e7935976c6
5 changed files with 13 additions and 10 deletions

View File

@@ -17,6 +17,7 @@
*/
#include "WorkoutWizard.h"
#include "MainWindow.h"
#include "Context.h"
#include "Athlete.h"
@@ -740,9 +741,9 @@ void ImportPage::SaveWorkout()
stream << "[END COURSE DATA]" << endl;
}
WorkoutWizard::WorkoutWizard(QWidget *parent) :QWizard(parent)
WorkoutWizard::WorkoutWizard(Context *context) :QWizard(context->mainWindow)
{
hackContext = (Context *)parent;
hackContext = context;
setPage(WW_WorkoutTypePage, new WorkoutTypePage());
setPage(WW_AbsWattagePage, new AbsWattagePage());
setPage(WW_RelWattagePage, new RelWattagePage());