<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/qt-models, branch v4.8.1</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom?h=v4.8.1</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom?h=v4.8.1'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2018-07-13T18:26:28Z</updated>
<entry>
<title>Fix dive mode drop-down in planner for re-planned dive</title>
<updated>2018-07-13T18:26:28Z</updated>
<author>
<name>Stefan Fuchs</name>
<email>sfuchs@gmx.de</email>
</author>
<published>2018-07-13T16:46:54Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=c6db1b12f89f2f21a3b5c579c9800190b468274e'/>
<id>urn:sha1:c6db1b12f89f2f21a3b5c579c9800190b468274e</id>
<content type='text'>
Also populate the DiveTypeSelectionModel with values for re-planned dive.

Signed-off-by: Stefan Fuchs &lt;sfuchs@gmx.de&gt;
</content>
</entry>
<entry>
<title>Dive pictures: detach ProfileWidget2 from DivePictureModel</title>
<updated>2018-07-08T18:00:44Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-06-30T09:36:37Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=3d7865cf269d8b2f9e06084586ee76e8a44faff1'/>
<id>urn:sha1:3d7865cf269d8b2f9e06084586ee76e8a44faff1</id>
<content type='text'>
As long as ProfileWidget2 and DivePictureModel showed the same set of
pictures and any change would lead to a full recalculation of the set,
it made sense to let ProfileWidget2 use DivePictureModel's data.

Recently, keeping the two lists in sync become more and more of a
burden. Therefore, disconnect ProfileWidget2 and DivePictureModel. This
will lead to some code-duplication and perhaps a temporary drop in
UI-performance, but in the end the code is distinctly simpler and also
more flexible.

Thus, for example the DivePhotoTab could be changed to support headings
without having to touch ProfileWidget2 at all.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Dive pictures: find moved pictures based on filename</title>
<updated>2018-07-03T18:27:36Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-06-03T15:26:44Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=0646b41275a3f38926c75d2746b3208805da3a23'/>
<id>urn:sha1:0646b41275a3f38926c75d2746b3208805da3a23</id>
<content type='text'>
Users might have edited their pictures. Therefore, instead of identifying
pictures by the hash of the file-content, use the file path. The match
between original and new filename is graded by a score. Currently, this
is the number of path components that match, starting from the filename.
Camparison is case-insensitive.

After having identified the matching images, write the caches so that they
are saved even if the user doesn't cleanly quit the application.

Since the new code uses significantly less resources, it can be run in a
single background thread. Thus, the multi-threading can be simplified.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Dive pictures: remove unnecessary check for no dives</title>
<updated>2018-07-02T17:55:47Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-06-30T11:52:06Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=37c6fe44e4839c226e9514887974f22fd86831e0'/>
<id>urn:sha1:37c6fe44e4839c226e9514887974f22fd86831e0</id>
<content type='text'>
This fixes a bug introduced in fbe1144eaf7e800a014c7a97b846835ba9f3bc7f:
For an empty log, in DivePictureModel::updateDivePictures()
beginResetModel() would be called without a corresponding endResetModel().

It is unclear whether this can ever be hit, because in the no-dives
case, at least in the desktop version no profile is shown.
Note, that this makes the check double-unnecessary.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Dive pictures: adjust rowDDEnd and rowDDStart on picture deletion</title>
<updated>2018-06-29T05:30:48Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-06-28T18:11:39Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=bf60d29e99a7d201850766d9195a052599dfd018'/>
<id>urn:sha1:bf60d29e99a7d201850766d9195a052599dfd018</id>
<content type='text'>
In DivePictureModel, rowDDEnd and rowDDStart specify the range of
pictures in the profile plot. Obviously, these have to be adjusted
when pictures are deleted.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>QML UI: correctly update the model</title>
<updated>2018-06-25T12:20:35Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2018-06-25T08:39:56Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=dde2049027a483b2e211747e6f18d560a88c28bf'/>
<id>urn:sha1:dde2049027a483b2e211747e6f18d560a88c28bf</id>
<content type='text'>
In order to trigger the redraw of an edited dive we need to make sure
the model realizes that it has been updated. So far the only way to make
sure this happens reliably appears to be to remove the item and
re-insert it. Seems weird, but with this the bug of not redrawing the
profile after an edit appears fixed.

Fixes #1419

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Localization: remove gettextFromC::instance()</title>
<updated>2018-06-24T18:31:14Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-06-17T19:03:16Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=879cb73b8bda364f63cc97c0f9963cfddc581add'/>
<id>urn:sha1:879cb73b8bda364f63cc97c0f9963cfddc581add</id>
<content type='text'>
There were a handfull instances of the kind
1) gettextFromC::instance()-&gt;tr(...)
2) gettextFromC::instance()-&gt;trGettext(...)

1) is pointless, as tr is a static function.

All instances of 2) were likewise pointless, because trGettext()
returns a C-string, which was then immediately converted to a
QString.

Thus, replace both constructs by gettextFromC::tr(...).

After this change there was only one user of gettextFromC::instance()
left, viz. the C-interface funtion trGettext(). Therefore, remove
gettextFromC::instance() and do all the caching / translating
directly in the global trGettext().

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Fix interpretation of dive mode changes upon replan</title>
<updated>2018-06-24T07:35:55Z</updated>
<author>
<name>Robert C. Helling</name>
<email>helling@atdotde.de</email>
</author>
<published>2018-06-17T21:21:53Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=8406cbf1876658dc11f41784c3336908b3dc49a7'/>
<id>urn:sha1:8406cbf1876658dc11f41784c3336908b3dc49a7</id>
<content type='text'>
... by taking into acount that dive planner points refer
to the sement before the waypoint (while change mode
events are concerned with the future of a waypoint).

Signed-off-by: Robert C. Helling &lt;helling@atdotde.de&gt;
</content>
</entry>
<entry>
<title>When adding new waypoints, use previous setpoint.</title>
<updated>2018-06-24T07:35:55Z</updated>
<author>
<name>Robert C. Helling</name>
<email>helling@atdotde.de</email>
</author>
<published>2018-06-17T21:20:02Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=068b4c65bd7d6b2a37212002c7ac220d3f9c9f97'/>
<id>urn:sha1:068b4c65bd7d6b2a37212002c7ac220d3f9c9f97</id>
<content type='text'>
Signed-off-by: Robert C. Helling &lt;helling@atdotde.de&gt;
</content>
</entry>
<entry>
<title>Planner: Change segment setpoint according to divemode</title>
<updated>2018-06-24T07:35:55Z</updated>
<author>
<name>Robert C. Helling</name>
<email>helling@atdotde.de</email>
</author>
<published>2018-06-17T19:30:51Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=0f77d73df28ff6c8c9f83c30232e6481e181ffae'/>
<id>urn:sha1:0f77d73df28ff6c8c9f83c30232e6481e181ffae</id>
<content type='text'>
When making a segment non-CCR, its setpoint should be 0.
OTOH, when it becomes CCR, use the default setpoint
(or should we try to find the last previous setpoint?)

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