mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Random white space cleanup
Because I can. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
2ec6303f50
commit
6ccb541f1d
13 changed files with 38 additions and 39 deletions
|
@ -166,14 +166,14 @@ void PrintLayout::printProfileDives(int divesPerRow, int divesPerColumn)
|
|||
profile->plot(dive, true);
|
||||
QPixmap profilePm = QPixmap::grabWidget(profile); // Qt4
|
||||
painter.drawPixmap((scaledW + padW) * col,
|
||||
(scaledH + padH) * row + yOffsetProfile,
|
||||
profilePm);
|
||||
(scaledH + padH) * row + yOffsetProfile,
|
||||
profilePm);
|
||||
// draw a table
|
||||
model.setDive(dive);
|
||||
QPixmap tablePm = QPixmap::grabWidget(table); // Qt4
|
||||
painter.drawPixmap((scaledW + padW) * col,
|
||||
(scaledH + padH) * row + yOffsetTable,
|
||||
tablePm);
|
||||
(scaledH + padH) * row + yOffsetTable,
|
||||
tablePm);
|
||||
col++;
|
||||
}
|
||||
|
||||
|
@ -337,8 +337,8 @@ void PrintLayout::printTable()
|
|||
if (i > 0)
|
||||
printer->newPage();
|
||||
QRegion region(0, pageIndexes.at(i) - 1,
|
||||
table.width(),
|
||||
pageIndexes.at(i + 1) - pageIndexes.at(i) + 1);
|
||||
table.width(),
|
||||
pageIndexes.at(i + 1) - pageIndexes.at(i) + 1);
|
||||
table.render(&painter, QPoint(0, 0), region);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue