mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
27810f3217
commit
47d673bda3
2 changed files with 4 additions and 11 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue