<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/desktop-widgets, branch v4.9.7</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom?h=v4.9.7</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom?h=v4.9.7'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2020-09-21T20:42:00Z</updated>
<entry>
<title>translations: initialize water type strings at run time</title>
<updated>2020-09-21T20:42:00Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-09-21T19:44:35Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=9d3b15bf9cb758e9f371d5f5f9eec0a3a2b0a4e2'/>
<id>urn:sha1:9d3b15bf9cb758e9f371d5f5f9eec0a3a2b0a4e2</id>
<content type='text'>
The water type strings were static and therefore passed through
gettextFromC::tr() before main(). One would hope to get a warning
in such a case, but this is not the case.

Therefore, use the QT_TRANSLATE_NOOP macro to register the strings
in Qt's translation system and translate the list when needed.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>desktop: fix TableView for Qt 5.15</title>
<updated>2020-09-13T20:55:46Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2020-09-13T00:10:19Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=efdff9fd87d8a4789c32de4cd12e4b51a1da03e1'/>
<id>urn:sha1:efdff9fd87d8a4789c32de4cd12e4b51a1da03e1</id>
<content type='text'>
If we set the size on the QPushButton, the button no longer receives any input
(tested on macOS). With this change we get an odd visual artifact when clicking
on the 'add' button, but it least it works, so this is good enough for the next
release.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Disable SAC factor setting for CCR dives</title>
<updated>2020-09-13T20:51:07Z</updated>
<author>
<name>Robert C. Helling</name>
<email>helling@atdotde.de</email>
</author>
<published>2020-06-02T09:52:25Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=3426c6440c0700ca24d34c000f88361a778b0942'/>
<id>urn:sha1:3426c6440c0700ca24d34c000f88361a778b0942</id>
<content type='text'>
The SAC factor is only used for minimal gas calculations which
don't make sense in the CCR context.

Additionally, make bailout stop for at least minimum switch
time or problem solving time.

Signed-off-by: Robert C. Helling &lt;helling@atdotde.de&gt;
</content>
</entry>
<entry>
<title>cleanup: remove empty files in desktop-widgets/statistics</title>
<updated>2020-09-12T15:36:10Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-09-12T09:39:25Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=762c5276fd7e49ec5f4e76973c1159b31e4fec63'/>
<id>urn:sha1:762c5276fd7e49ec5f4e76973c1159b31e4fec63</id>
<content type='text'>
This functionality never came to be and there are fundamentally
different plans floating around. Therefore, remove these empty
files.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>desktop: make completion of equipment types substring search</title>
<updated>2020-09-10T15:58:03Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-09-10T08:42:00Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=fbd2160af249e260203c3f88db4da560cae26f75'/>
<id>urn:sha1:fbd2160af249e260203c3f88db4da560cae26f75</id>
<content type='text'>
User request: when entering a cylinder type, do a substring
search. For example, when entering "100" also find "AL100".
Currently, a starts-with search was used.

This is simply done by setting the "filterMode" of the
ComboBoxDelegate to "Qt::MatchContains".

Suggested-by: Miika Turkia &lt;miika.turkia@gmail.com&gt;
Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>cleanup: when planning a dive, set dive computer to first dc</title>
<updated>2020-09-09T00:20:09Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-09-06T12:37:45Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=0424ee8996f231dbba1ffb6e6db087855dbb26a2'/>
<id>urn:sha1:0424ee8996f231dbba1ffb6e6db087855dbb26a2</id>
<content type='text'>
When planning a dive, dc_number was set to 1, which actually is
the second dc! The code seems to handle this gracefully, however
it appears weird. Let's set dc_number to 0 instead.

Originally, the assignment was introduced in a422957cd6525b9753
and moved later in 4f5621c4c6acc3a.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>cleanup: use taxonomy_get_value() instead of taxonomy_get_index()</title>
<updated>2020-09-06T19:59:54Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-09-06T11:48:52Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=ee2f4664705e139e90b28351f4d76a3e5fbab12d'/>
<id>urn:sha1:ee2f4664705e139e90b28351f4d76a3e5fbab12d</id>
<content type='text'>
Instead of getting the index and using that to access values, use
the taxonomy_get_value() helper function. Two places are affected:
1) reverse geo-lookup
2) location filter delegate

The behavior of reverse geo-lookup is changed slightly: now an
empty string is likewise recognized as missing "TC_ADMIN_L3".
Before, only a missing category was interpreted as such.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>[Bug #2934] Geo Lookup - support for remote dive sites</title>
<updated>2020-09-05T15:34:15Z</updated>
<author>
<name>Michael Werle</name>
<email>micha@michaelwerle.com</email>
</author>
<published>2020-09-03T03:04:05Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=d404aa767feb24b19da50ba833723b3dd0cfb271'/>
<id>urn:sha1:d404aa767feb24b19da50ba833723b3dd0cfb271</id>
<content type='text'>
Some remote dive sites have no populated places (towns, cities)
nearby. For such sites, we now fall back to looking up
unpopulated place names, such as the reef or island name.

Also some code refactorisation:
the actual network access is now encapsulated in its own
function removing some duplicated code handling in the
reverseGeoLookup function and making it more readable.

Furthermore, reverseGeoLookup() was completely refactored as
most of its functionality was due to legacy requirements; the
current code-base only calls this function from a single
location and only with an empty taxonomy_data object. This
makes the function more focussed and much simpler and more
readable.

Finally, a resource leak in reverseGeocde introduced in
4f3b26f9b6296273e37ec317bc68f32f94f546dc was fixed.

Signed-off-by: Michael Werle &lt;micha@michaelwerle.com&gt;
</content>
</entry>
<entry>
<title>Increase event icon size in print mode</title>
<updated>2020-09-03T18:46:18Z</updated>
<author>
<name>Robert C. Helling</name>
<email>helling@atdotde.de</email>
</author>
<published>2020-08-07T19:10:46Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=52aa7d83b6eb0200702c75425972223720fde00a'/>
<id>urn:sha1:52aa7d83b6eb0200702c75425972223720fde00a</id>
<content type='text'>
When plotting the profile in higher resolution for export,
increase the icon size in the same way.

This is commented out for the mobile version as that
uses printMode for profile display.

Signed-off-by: Robert C. Helling &lt;helling@atdotde.de&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Improve resolution of profile export</title>
<updated>2020-09-03T18:46:17Z</updated>
<author>
<name>Robert C. Helling</name>
<email>helling@atdotde.de</email>
</author>
<published>2020-08-07T09:43:49Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=c6fa41588067b3c9787ded63207014ee5ae4d2d8'/>
<id>urn:sha1:c6fa41588067b3c9787ded63207014ee5ae4d2d8</id>
<content type='text'>
The way we export the profile image (as direct export but
also used for printing) is that we render the profile
from the screen to a Pixmap and save that to a file. Unfortunately
this results in very bad resultion and a blurred image.

This is an attempt to improve that situation but it's still far
from perfect: Rather than a QPixmap and grab, I now use a QImage
(where I can set the size) and render, and indeed the picture resolution
(when vied at fixed size) get's better this way. The disadvantage
is that icons get smaller at the same rate und so
there is a natural limit on how big we can get. Maybe somebody
with better Qt knowledge can take off from here. In my opinion
this is already a step in the right direction.

Signed-off-by: Robert C. Helling &lt;helling@atdotde.de&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
</feed>
