<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/qt-models, branch v4.8.3</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom/qt-models?h=v4.8.3</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom/qt-models?h=v4.8.3'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2018-09-23T18:50:53Z</updated>
<entry>
<title>Core: split process_dives() in post-import and post-load versions</title>
<updated>2018-09-23T18:50:53Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-09-23T10:53:35Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=35b8a4f404de3297cb8d126654e0ec37245a7537'/>
<id>urn:sha1:35b8a4f404de3297cb8d126654e0ec37245a7537</id>
<content type='text'>
process_dives() is used to post-process the dive table after loading
or importing. The first parameter states whether this was after
load or import.

Especially in the light of undo, load and import are fundamentally
different things. Notably, that latter should be undo-able, whereas
the former is not. Therefore, as a first step to make import undo-able,
split the function in two versions and remove the first parameter.

It turns out the the load-version is very light. It only sets the
DC nicknames and sorts the dive-table. There seems to be no reason
to merge dives.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Fix compilation problem</title>
<updated>2018-09-14T19:25:00Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2018-09-14T19:25:00Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=6173ef2eb2030735a6614c188e90e8cdbbb9b486'/>
<id>urn:sha1:6173ef2eb2030735a6614c188e90e8cdbbb9b486</id>
<content type='text'>
Never commit a change you didn't test.
Oh well. Sorry.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Add Q_OBJECT macro to two more classes</title>
<updated>2018-09-14T18:55:24Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2018-09-14T18:51:05Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=313351c396bf3a887c21662f270a68a9ae4510ee'/>
<id>urn:sha1:313351c396bf3a887c21662f270a68a9ae4510ee</id>
<content type='text'>
These also showed up as concerns when creating translation strings.
Adding them thankfully didn't create new strings, but not having them
potentially leads to incorrect runtime behavior.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Desktop: buddies in the dive list</title>
<updated>2018-09-04T22:02:07Z</updated>
<author>
<name>Jan Mulder</name>
<email>jlmulder@xs4all.nl</email>
</author>
<published>2018-09-04T15:10:11Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=12789a3f9ff81f77bda76ccb0cc6ba5aa6aa0ace'/>
<id>urn:sha1:12789a3f9ff81f77bda76ccb0cc6ba5aa6aa0ace</id>
<content type='text'>
As proposed in RFC #1587, now also alllow buddies to be shown in the
divelist.

Fixes: #1587

Signed-off-by: Jan Mulder &lt;jlmulder@xs4all.nl&gt;
</content>
</entry>
<entry>
<title>Cleanup: make DiveTripModel a global object</title>
<updated>2018-09-01T14:48:43Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-07-25T19:23:19Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=89e0c3f46498ba3e0844514b6709a07c200a68df'/>
<id>urn:sha1:89e0c3f46498ba3e0844514b6709a07c200a68df</id>
<content type='text'>
DiveTripModel (the model describing the dive-list) was destroyed
and recreated on every reset of the list. This seems excessive.
Instead - in analogy to most other models - make it a single
global object.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Filter: sort filter items in FilterModelBase::updateList()</title>
<updated>2018-08-31T14:48:23Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-08-28T18:54:53Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=236f0512bec2946b35052abf637c7c8df97f34bf'/>
<id>urn:sha1:236f0512bec2946b35052abf637c7c8df97f34bf</id>
<content type='text'>
All callers of FilterModelBase::updateList() sorted the items
(except the last one). Thus we can do the sorting inside the
function.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Filter: Make FilterModelBase a proper Qt model (mostly)</title>
<updated>2018-08-31T14:48:23Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-08-28T18:44:11Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=9b90c461a21a71b1cd97060eee5a3cfb540bedba'/>
<id>urn:sha1:9b90c461a21a71b1cd97060eee5a3cfb540bedba</id>
<content type='text'>
Since FilterModelBase now contains complex data (counts and checked),
we might just as well make it a full model and keep track of
the name as well. I.e. do not derive from QStringListModel but from
QAbstractListModel and add the name to the item structure.

Implement proper reset / add / rename semantics. This is overkill at the
moment, as after all any modification the model will be reset, but
ultimately it will allow us to be smarter and only update rows when
needed.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Zero initialize deco state struct</title>
<updated>2018-08-31T13:34:44Z</updated>
<author>
<name>Robert C. Helling</name>
<email>helling@atdotde.de</email>
</author>
<published>2018-08-31T11:46:34Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=554a7aaba4ad1a65a68a7d3e6f8aeece548351b9'/>
<id>urn:sha1:554a7aaba4ad1a65a68a7d3e6f8aeece548351b9</id>
<content type='text'>
Valgrind found use of some uninitialized variable (probably
ds-&gt;gf_low_pressure_this_dive ), see #1614. Zero is the correct
value to start with. Lacking a working version of valgrind I cannot
check this actually fixes the problem.

Signed-off-by: Robert C. Helling &lt;helling@atdotde.de&gt;
</content>
</entry>
<entry>
<title>Filter: cache number of dives fulfilling filter rules</title>
<updated>2018-08-28T12:03:59Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-08-27T10:53:46Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=66aeaddd0f9ccdb46bb0879c8a9f7e6181c3d571'/>
<id>urn:sha1:66aeaddd0f9ccdb46bb0879c8a9f7e6181c3d571</id>
<content type='text'>
Currently, in FilterModelBase::data() the number of dives is recalculated.
This happens for every mouse-over event!

Calculate the number of dives only on recalculation and store the count
in the items-struct.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Whitespace: make range based for loops consistent in filtermodels.cpp</title>
<updated>2018-08-28T12:03:59Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-08-28T05:57:59Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=e3f8615054250d3e6fe0eb53f04bed229646e2d4'/>
<id>urn:sha1:e3f8615054250d3e6fe0eb53f04bed229646e2d4</id>
<content type='text'>
Consistently use "for(item: items)" instead if "for(item : items)".

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
</feed>
