summaryrefslogtreecommitdiffstats
path: root/profile-widget/profilewidget2.cpp
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-11-06 13:54:35 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-06 09:58:08 -0800
commit6d7eefd52da50fb76a1f817a871ef21b77af20dc (patch)
treef5f110188db0d51910fa5cd04bc73f199fe26933 /profile-widget/profilewidget2.cpp
parent81f1238ab9e82ad158e00b98f59d8ddb497ee7c8 (diff)
downloadsubsurface-6d7eefd52da50fb76a1f817a871ef21b77af20dc.tar.gz
Untagle DiveCartesianAxis from MainWindow
DiveCartesianAxis and derivatives can recieve ProfileWidget2 as an instance in their constructor. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile-widget/profilewidget2.cpp')
-rw-r--r--profile-widget/profilewidget2.cpp14
1 files changed, 7 insertions, 7 deletions
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()),