From 6d7eefd52da50fb76a1f817a871ef21b77af20dc Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Fri, 6 Nov 2015 13:54:35 +0200 Subject: Untagle DiveCartesianAxis from MainWindow DiveCartesianAxis and derivatives can recieve ProfileWidget2 as an instance in their constructor. Signed-off-by: Lubomir I. Ivanov Signed-off-by: Dirk Hohndel --- profile-widget/profilewidget2.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'profile-widget/profilewidget2.cpp') diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index d485d4d79..6b83508b4 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -82,14 +82,14 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) : QGraphicsView(parent), backgroundFile(":poster"), toolTipItem(new ToolTipItem()), isPlotZoomed(prefs.zoomed_plot),// no! bad use of prefs. 'PreferencesDialog::loadSettings' NOT CALLED yet. - profileYAxis(new DepthAxis()), - gasYAxis(new PartialGasPressureAxis()), - temperatureAxis(new TemperatureAxis()), - timeAxis(new TimeAxis()), + profileYAxis(new DepthAxis(this)), + gasYAxis(new PartialGasPressureAxis(this)), + temperatureAxis(new TemperatureAxis(this)), + timeAxis(new TimeAxis(this)), diveProfileItem(new DiveProfileItem()), temperatureItem(new DiveTemperatureItem()), meanDepthItem(new DiveMeanDepthItem()), - cylinderPressureAxis(new DiveCartesianAxis()), + cylinderPressureAxis(new DiveCartesianAxis(this)), gasPressureItem(new DiveGasPressureItem()), diveComputerText(new DiveTextItem()), diveCeiling(new DiveCalculatedCeiling()), @@ -102,9 +102,9 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) : QGraphicsView(parent), ccrsensor1GasItem(new PartialPressureGasItem()), ccrsensor2GasItem(new PartialPressureGasItem()), ccrsensor3GasItem(new PartialPressureGasItem()), - heartBeatAxis(new DiveCartesianAxis()), + heartBeatAxis(new DiveCartesianAxis(this)), heartBeatItem(new DiveHeartrateItem()), - percentageAxis(new DiveCartesianAxis()), + percentageAxis(new DiveCartesianAxis(this)), ambPressureItem(new DiveAmbPressureItem()), gflineItem(new DiveGFLineItem()), mouseFollowerVertical(new DiveLineItem()), -- cgit v1.2.3-70-g09d2