Random white space cleanup

Because I can.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-10-15 04:37:31 -07:00
parent 2ec6303f50
commit 6ccb541f1d
13 changed files with 38 additions and 39 deletions

View file

@ -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);
}
}