<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/qt-ui, branch v4.1.93</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom?h=v4.1.93</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom?h=v4.1.93'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2014-07-25T14:23:39Z</updated>
<entry>
<title>PrintLayout: fix a potential bug in the recent table print update</title>
<updated>2014-07-25T14:23:39Z</updated>
<author>
<name>Lubomir I. Ivanov</name>
<email>neolit123@gmail.com</email>
</author>
<published>2014-07-25T12:59:12Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=050b1b71ffe92b76b98c768e7d30e2a219251a72'/>
<id>urn:sha1:050b1b71ffe92b76b98c768e7d30e2a219251a72</id>
<content type='text'>
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(&amp;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 &lt;neolit123@gmail.com&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>PrintDialog: make "print only selected" the default option</title>
<updated>2014-07-25T14:07:50Z</updated>
<author>
<name>Lubomir I. Ivanov</name>
<email>neolit123@gmail.com</email>
</author>
<published>2014-07-25T13:52:37Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=cccf05ee7b8de7d4698e84505fcbb3285018a781'/>
<id>urn:sha1:cccf05ee7b8de7d4698e84505fcbb3285018a781</id>
<content type='text'>
Signed-off-by: Lubomir I. Ivanov &lt;neolit123@gmail.com&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>PrintLayout: vectorize the table print</title>
<updated>2014-07-25T04:10:44Z</updated>
<author>
<name>Lubomir I. Ivanov</name>
<email>neolit123@gmail.com</email>
</author>
<published>2014-07-25T00:50:45Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=0a53449e7620adf75322eafc0a3c870ccefd6fef'/>
<id>urn:sha1:0a53449e7620adf75322eafc0a3c870ccefd6fef</id>
<content type='text'>
Use QPicture to do that.

QPainter::drawPicture() requires offsetting the target QPoint's
Y value by two times the headingRow height.
This can be improved the hardcodding the offset when the
'pageIndexes' are calculated, but is a bit complicated.

Signed-off-by: Lubomir I. Ivanov &lt;neolit123@gmail.com&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>PrintLayout: reduce the scope of 'pic' and 'picPainter'</title>
<updated>2014-07-25T04:10:30Z</updated>
<author>
<name>Lubomir I. Ivanov</name>
<email>neolit123@gmail.com</email>
</author>
<published>2014-07-25T00:50:44Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=50b4617cd4ba31ea9495f8538a5a4c070cdfbced'/>
<id>urn:sha1:50b4617cd4ba31ea9495f8538a5a4c070cdfbced</id>
<content type='text'>
Signed-off-by: Lubomir I. Ivanov &lt;neolit123@gmail.com&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>PrintLayout: modify the profile font size based on the #dives per page</title>
<updated>2014-07-25T04:10:06Z</updated>
<author>
<name>Lubomir I. Ivanov</name>
<email>neolit123@gmail.com</email>
</author>
<published>2014-07-25T00:50:43Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=c51d4ce0b0199fd3c7a94ea6258f6ba177d55331'/>
<id>urn:sha1:c51d4ce0b0199fd3c7a94ea6258f6ba177d55331</id>
<content type='text'>
For the profile print, the number of dives per page is:
divesPerRow * divesPerColumn

If we have more 3, 0.6 seems optimal, while for less we can
pretty much use the default scale of 1.0.

Signed-off-by: Lubomir I. Ivanov &lt;neolit123@gmail.com&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>PrintLayout: draw the profile to a QImage only on Linux</title>
<updated>2014-07-25T04:06:49Z</updated>
<author>
<name>Lubomir I. Ivanov</name>
<email>neolit123@gmail.com</email>
</author>
<published>2014-07-25T00:50:42Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=e3dbbfe9f298092f6dedeab0e23ce28b506a3644'/>
<id>urn:sha1:e3dbbfe9f298092f6dedeab0e23ce28b506a3644</id>
<content type='text'>
The QImage fix for the recently reported
"huge-vector-lines-in-PDF-printouts" bug is only needed on Linux.

For Win32 and OSx we can render to vector.

Signed-off-by: Lubomir I. Ivanov &lt;neolit123@gmail.com&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>PrintLayout: fix the ProfilePrintModel font</title>
<updated>2014-07-25T04:06:42Z</updated>
<author>
<name>Lubomir I. Ivanov</name>
<email>neolit123@gmail.com</email>
</author>
<published>2014-07-25T00:50:41Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=3af7db71c8cbbbcb802561ed2a7f49413362f966'/>
<id>urn:sha1:3af7db71c8cbbbcb802561ed2a7f49413362f966</id>
<content type='text'>
Fixing the font size is required, because we don't really support
a dynamic row height, as the row height is set in the class
constructor.

7 seems optimal for all print modes.

Signed-off-by: Lubomir I. Ivanov &lt;neolit123@gmail.com&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>PrintLayout: disable the QPainter scaling</title>
<updated>2014-07-25T04:06:19Z</updated>
<author>
<name>Lubomir I. Ivanov</name>
<email>neolit123@gmail.com</email>
</author>
<published>2014-07-25T00:50:40Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=feda96cec5ddf899066ea77d2acf91f6310f0452'/>
<id>urn:sha1:feda96cec5ddf899066ea77d2acf91f6310f0452</id>
<content type='text'>
This is wrong because we don't really need to scale. We already
have the estimated page dimentions in pixels, so taking the
quotient of the printer DPI and screen DPI and then scaling
(probably up) our rendered widgets via the QPainter introduces
blur (due to the oversampling), and a performance penalty.

By rendering at the exact dimensions we ensure that the widgets
are crisp at a 100% printout.

Signed-off-by: Lubomir I. Ivanov &lt;neolit123@gmail.com&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>PrintLayout: a whitespace fix</title>
<updated>2014-07-25T04:06:05Z</updated>
<author>
<name>Lubomir I. Ivanov</name>
<email>neolit123@gmail.com</email>
</author>
<published>2014-07-25T00:50:39Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=5e8f4c8560e5e21347531f09e48e3df802ae3b98'/>
<id>urn:sha1:5e8f4c8560e5e21347531f09e48e3df802ae3b98</id>
<content type='text'>
Signed-off-by: Lubomir I. Ivanov &lt;neolit123@gmail.com&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Printing: add 1 dive per page option</title>
<updated>2014-07-24T18:33:28Z</updated>
<author>
<name>Lubomir I. Ivanov</name>
<email>neolit123@gmail.com</email>
</author>
<published>2014-07-24T17:56:39Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=21585403dba6ec47afdf81b86557285acb993b7a'/>
<id>urn:sha1:21585403dba6ec47afdf81b86557285acb993b7a</id>
<content type='text'>
With this option there is an exception, which makes the notes section of
the profile table occupy half the page. This way dive plans can reasonably
be printed.

Fixes #636

Signed-off-by: Lubomir I. Ivanov &lt;neolit123@gmail.com&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
</feed>
