summaryrefslogtreecommitdiffstats
path: root/qt-ui/printlayout.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-02 12:03:40 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-02 12:03:40 -0700
commit91086d08ad77b693c7fd1440f9403f84acae0794 (patch)
tree08d3785fa19a97572044d1d3c3d5c92ce65c4c08 /qt-ui/printlayout.cpp
parenta221a6e9f5ff7a9460beaa0fbb4da53e5616eca1 (diff)
downloadsubsurface-91086d08ad77b693c7fd1440f9403f84acae0794.tar.gz
UI restructure: plotDive should just take one dive
We don't have a concept of what to do when plotting multiple dives, so let's not pretend and remove all the messing around with lists. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/printlayout.cpp')
-rw-r--r--qt-ui/printlayout.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/printlayout.cpp b/qt-ui/printlayout.cpp
index 159b51822..e0bb4995f 100644
--- a/qt-ui/printlayout.cpp
+++ b/qt-ui/printlayout.cpp
@@ -183,7 +183,7 @@ void PrintLayout::printProfileDives(int divesPerRow, int divesPerColumn)
// draw a profile
painter.translate((scaledW + padW) * col, (scaledH + padH) * row + yOffsetProfile);
- profile->plotDives(QList<struct dive *>() << dive);
+ profile->plotDive(dive);
profile->render(&painter, QRect(0, 0, scaledW, scaledH - tableH - padPT));
painter.setTransform(origTransform);
@@ -202,7 +202,7 @@ void PrintLayout::printProfileDives(int divesPerRow, int divesPerColumn)
profile->setFrameStyle(profileFrameStyle);
profile->setPrintMode(false);
profile->resize(originalSize);
- profile->plotDives(QList<struct dive *>() << current_dive);
+ profile->plotDive(current_dive);
}
/* we create a table that has a fixed height, but can stretch to fit certain width */