diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-10-27 17:48:04 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-10-27 12:42:21 -0700 |
commit | bc11097dedd456506013caba5e886a0df4c74ead (patch) | |
tree | ae16d5eb1e048ed3bfadcebd462402657b4cd999 /profile-widget/tankitem.h | |
parent | 6d78e63d19e4aed9b25a720ee8c6fdac450be289 (diff) | |
download | subsurface-bc11097dedd456506013caba5e886a0df4c74ead.tar.gz |
Cleanup: move common code into TankItem::createBar() function
Calculation of the x-position and the width of the tank-bar
was done outside of the function. Move it into the function
to make the caller a bit more readable.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget/tankitem.h')
-rw-r--r-- | profile-widget/tankitem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/profile-widget/tankitem.h b/profile-widget/tankitem.h index e7f82678e..4eb5710d6 100644 --- a/profile-widget/tankitem.h +++ b/profile-widget/tankitem.h @@ -24,7 +24,7 @@ public slots: void modelDataChanged(const QModelIndex &topLeft = QModelIndex(), const QModelIndex &bottomRight = QModelIndex()); private: - void createBar(qreal x, qreal w, struct gasmix gas); + void createBar(int startTime, int stopTime, struct gasmix gas); DiveCartesianAxis *hAxis; struct plot_data *pInfoEntry; int pInfoNr; |