mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
PrintLayout: reduce the scope of 'pic' and 'picPainter'
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c51d4ce0b0
commit
50b4617cd4
1 changed files with 2 additions and 3 deletions
|
@ -137,9 +137,6 @@ void PrintLayout::printProfileDives(int divesPerRow, int divesPerColumn)
|
|||
painter.setRenderHint(QPainter::Antialiasing);
|
||||
painter.setRenderHint(QPainter::SmoothPixmapTransform);
|
||||
|
||||
QPicture pic;
|
||||
QPainter picPainter;
|
||||
|
||||
// setup the profile widget
|
||||
QPointer<ProfileWidget2> profile = MainWindow::instance()->graphics();
|
||||
const int profileFrameStyle = profile->frameStyle();
|
||||
|
@ -209,6 +206,8 @@ void PrintLayout::printProfileDives(int divesPerRow, int divesPerColumn)
|
|||
painter.setTransform(origTransform);
|
||||
|
||||
// draw a table
|
||||
QPicture pic;
|
||||
QPainter picPainter;
|
||||
painter.translate((scaledW + padW) * col, (scaledH + padH) * row + yOffsetTable);
|
||||
model.setDive(dive);
|
||||
picPainter.begin(&pic);
|
||||
|
|
Loading…
Reference in a new issue