aboutsummaryrefslogtreecommitdiffstats
path: root/profile-widget/tankitem.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-12-23 12:26:12 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-10 15:57:39 -0800
commit47d673bda324bf4a884fa41a0b95d08692a6f712 (patch)
tree5c8e39588ebe5f48557fa39564d2ffcfa89ceec8 /profile-widget/tankitem.cpp
parent27810f321743e4e3c341e3d89257d82fc23946e6 (diff)
downloadsubsurface-47d673bda324bf4a884fa41a0b95d08692a6f712.tar.gz
profile: remove TankItem's connection to the resize signal
Since the initial commit introducing TankItem, there was a connection that replotted the item if the horizontal axis sent the sizeChanged() signal. I never managed to create this signal for the horizontal axis, only for the vertical axes. Therefore remove this thing. If it turns out that we need it after all, readd it in a more deterministic way (i.e. call where it is needed). Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget/tankitem.cpp')
-rw-r--r--profile-widget/tankitem.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/profile-widget/tankitem.cpp b/profile-widget/tankitem.cpp
index 5469ffc0d..d87b1228b 100644
--- a/profile-widget/tankitem.cpp
+++ b/profile-widget/tankitem.cpp
@@ -7,8 +7,7 @@
static const qreal height = 3.0;
-TankItem::TankItem(QObject *parent) :
- QObject(parent),
+TankItem::TankItem() :
plotEndTime(-1)
{
QColor red(PERSIANRED1);
@@ -111,6 +110,4 @@ void TankItem::replot()
void TankItem::setHorizontalAxis(DiveCartesianAxis *horizontal)
{
hAxis = horizontal;
- connect(hAxis, SIGNAL(sizeChanged()), this, SLOT(replot()));
- replot();
}