subsurface/qt-ui
Lubomir I. Ivanov 050b1b71ff PrintLayout: fix a potential bug in the recent table print update
There is a weird QPicture dependency; we need to offset a page
by headingRowHeightD2, which is half the heading height.
The same doesn't make sense if we are rendering the table widget
directly to the printer-painter.
Moving the offset inside 'pageIndexes' is less desirable.

The bug itself manifests when a top margin is set on Win32,
while on Linux it's more obvious.
On new page start, a fixed height from the last dive on the
previous page becomes visible even if the math seems correct.
Offsetting both the page index and the vertical position at
which the QPicture is placed fixes that.

If 'table.render(&painter...)' is used the bug also goes away
and our 'pageIndexes' start to make sense again, but we want
to use QPicture so that the table is in vector. I don't have a good
explanation why this happens!

Tested on Ubuntu 12.04 and Win7.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-07-25 07:23:39 -07:00
..
css
marble
profile Code cleanup: HeartRate item was doing insane things 2014-07-23 07:51:22 -07:00
about.cpp
about.h Headers cleanup. 2014-06-26 15:47:02 -07:00
about.ui
completionmodels.cpp Gratuitous whitespace changes 2014-05-22 11:40:22 -07:00
completionmodels.h
divecomputermanagementdialog.cpp misc capitalisation and spelling 2014-07-11 07:06:26 -07:00
divecomputermanagementdialog.h
divecomputermanagementdialog.ui divecomputermanagementdilog capitalisation consitency 2014-07-10 16:26:20 -07:00
divelistview.cpp Only repopulate the dive info once ( we were repopulating 4 times ) 2014-07-23 08:10:10 -07:00
divelistview.h Fix crash when trying to add a dive or plan when a filter is active. 2014-06-26 15:49:19 -07:00
divelogexportdialog.cpp HTML: Add dive photos to the detailed view 2014-07-14 21:38:22 -07:00
divelogexportdialog.h Headers cleanup. 2014-06-26 15:47:02 -07:00
divelogexportdialog.ui Add missing application icon 2014-07-18 10:21:42 -07:00
divelogimportdialog.cpp Add quirks for Seabear CSV settings for pressure 2014-07-10 12:40:41 -07:00
divelogimportdialog.h Add support for importing pressure from CSV files 2014-07-10 12:40:25 -07:00
divelogimportdialog.ui divelogimportdialog capitalisation consitency 2014-07-10 16:27:50 -07:00
divepicturewidget.cpp Do not create a backup for Q_FOREACH container 2014-07-15 16:55:10 -07:00
divepicturewidget.h UI restructure: always display pictures for displayed dive 2014-07-03 09:37:55 -07:00
diveplanner.cpp Planner: fix start time handling 2014-07-24 09:03:56 -07:00
diveplanner.h Planner: correctly deal with units in Ascent/descent rates 2014-07-17 08:06:15 -07:00
diveplanner.ui Planner: limit altitude and pressure 2014-07-15 17:19:49 -07:00
downloadfromdivecomputer.cpp Try to avoid inconsistent selection state after divecomputer download 2014-07-14 21:44:57 -07:00
downloadfromdivecomputer.h Headers cleanup. 2014-06-26 15:47:02 -07:00
downloadfromdivecomputer.ui downloadfromdivecomputer capitalisation consitency 2014-07-10 16:29:24 -07:00
globe.cpp misc capitalisation and spelling 2014-07-11 07:06:26 -07:00
globe.h Headers cleanup. 2014-06-26 15:47:02 -07:00
graphicsview-common.cpp
graphicsview-common.h
groupedlineedit.cpp Forbid the use of empty strings as tags 2014-07-10 10:17:50 -07:00
groupedlineedit.h
kmessagewidget.cpp Don't add a close button to KMessageWidget 2014-07-04 07:46:35 -07:00
kmessagewidget.h
maintab.cpp Sort dive table after adding a dive 2014-07-24 08:20:34 -07:00
maintab.h Remove uneeded function 2014-07-15 17:05:46 -07:00
maintab.ui Typo fix Ave. => Avg. 2014-07-13 21:39:25 -07:00
mainwindow.cpp Desselects the trip before dive add / plan, and reselects it on cancel 2014-07-16 16:08:22 -07:00
mainwindow.h Remove unused menu "Filter" 2014-07-14 18:33:54 -07:00
mainwindow.ui pN2 » pN₂, pO2 » pO₂ 2014-07-16 13:17:09 -07:00
modeldelegates.cpp Whitespace fixes. 2014-07-23 07:47:15 -07:00
modeldelegates.h Add the HTML Delegate to printing. 2014-07-18 10:14:27 -07:00
models.cpp Replace cylinder_is_used with is_cylinder_used 2014-07-17 08:28:21 -07:00
models.h Printing: print depth unit in table 2014-07-11 21:59:21 -07:00
plannerSettings.ui Update strings for translations 2014-07-24 07:15:05 -07:00
preferences.cpp Animation speed is a value, not a boolean 2014-07-23 07:50:03 -07:00
preferences.h Added a 'use default file' button on preferences. 2014-07-16 15:52:29 -07:00
preferences.ui Added a 'use default file' button on preferences. 2014-07-16 15:52:29 -07:00
printdialog.cpp PrintDialog: make "print only selected" the default option 2014-07-25 07:07:50 -07:00
printdialog.h
printlayout.cpp PrintLayout: fix a potential bug in the recent table print update 2014-07-25 07:23:39 -07:00
printlayout.h PrintLayout: disable the QPainter scaling 2014-07-24 21:06:19 -07:00
printoptions.cpp Printing: add 1 dive per page option 2014-07-24 11:33:28 -07:00
printoptions.h Printing: add 1 dive per page option 2014-07-24 11:33:28 -07:00
printoptions.ui Printing: add 1 dive per page option 2014-07-24 11:33:28 -07:00
renumber.ui
searchbar.ui Add a horizontal spacer to make the searchbar layout better 2014-07-11 17:00:23 -07:00
shiftimagetimes.ui shifimmagetimes capitalisation consitency and title 2014-07-11 07:05:10 -07:00
shifttimes.ui shiftimes capitalisation consitency and title 2014-07-11 07:05:17 -07:00
simplewidgets.cpp Misc UI capitalisation consitencies and other text changes 2014-07-11 10:44:09 -07:00
simplewidgets.h Calendar widget should hide when clicking somewhere else 2014-06-30 16:05:43 -07:00
starwidget.cpp Change the Star Widget to use QImage instead of QPixmap 2014-06-20 15:43:10 -07:00
starwidget.h Change the Star Widget to use QImage instead of QPixmap 2014-06-20 15:43:10 -07:00
subsurfacewebservices.cpp Translate progressbar text 2014-07-24 07:29:42 -07:00
subsurfacewebservices.h Rely on QNetworkReply finished() signal instead of AccessManager one 2014-07-16 13:56:46 -07:00
tableview.cpp Misc UI capitalisation consitencies and other text changes 2014-07-11 10:44:09 -07:00
tableview.h
tableview.ui
tagwidget.cpp Misc UI capitalisation consitencies and other text changes 2014-07-11 10:44:09 -07:00
tagwidget.h Headers cleanup. 2014-06-26 15:47:02 -07:00
updatemanager.cpp Add missing application icon 2014-07-18 10:21:42 -07:00
updatemanager.h Rely on QNetworkReply finished() signal instead of AccessManager one 2014-07-16 13:56:46 -07:00
usermanual.cpp Add missing application icon 2014-07-18 10:21:42 -07:00
usermanual.h Use a layout to lay down the search and the help 2014-07-11 16:59:14 -07:00
usersurvey.cpp Add missing application icon 2014-07-18 10:21:42 -07:00
usersurvey.h Rely on QNetworkReply finished() signal instead of AccessManager one 2014-07-16 13:56:46 -07:00
usersurvey.ui Fix layout for User Survey 2014-07-16 09:11:04 -07:00
webservices.ui webservice capitalisation consitency 2014-07-11 07:05:38 -07:00