<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/qt-models, branch v4.9.4</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom/qt-models?h=v4.9.4</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom/qt-models?h=v4.9.4'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2020-05-01T16:42:31Z</updated>
<entry>
<title>cleanup: move dive_table from dive.h to divelist.h</title>
<updated>2020-05-01T16:42:31Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-05-01T11:43:52Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=95284c026e763482ef581c8b6298012d2c1fd941'/>
<id>urn:sha1:95284c026e763482ef581c8b6298012d2c1fd941</id>
<content type='text'>
This allows us to decouple dive.h and divelist.h, a small step in
include disentangling.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>core: always keep an empty cylinder at the end of the cylinder array</title>
<updated>2020-05-01T10:36:28Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-04-28T12:50:40Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=b949bad026c8bab7611998fb0fcf9f6008dbd7e9'/>
<id>urn:sha1:b949bad026c8bab7611998fb0fcf9f6008dbd7e9</id>
<content type='text'>
This will be temporarilly used by the planner to mark consumption of
air at the surface. Do this by creating a new function add_cylinder,
which replaces add_to_cylinder_table() and takes care of always adding
a dummy cylinder at the end of the table. Make the original
add_to_cylinder_table() local, so that it cannot be accessed anymore.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>cleanup: remove DivePlotDataModel::diveId</title>
<updated>2020-04-30T21:14:13Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-04-30T20:03:15Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=3ed36b2ab5344466eae5eba141b8b62ac4c966fc'/>
<id>urn:sha1:3ed36b2ab5344466eae5eba141b8b62ac4c966fc</id>
<content type='text'>
Nobody was using that member variable.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>cleanup: replace constructs of the type &amp;vector[0] by vector.data()</title>
<updated>2020-04-21T14:50:38Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-04-21T07:34:40Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=9b8eed7821c7e55c5e2eccd252184a6d2123e3cd'/>
<id>urn:sha1:9b8eed7821c7e55c5e2eccd252184a6d2123e3cd</id>
<content type='text'>
It appears that some misguided compiler / library combinations crash
on &amp;vector[0] for empty vectors. Even though very unfriendly, they are
technically correct, so let's remove these constructs.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>debug output: ensure our debug output is captured on Android</title>
<updated>2020-04-18T16:00:21Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2020-04-17T20:02:25Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=f9f4a9c232357c3967394e8f6a64f9aa36430a45'/>
<id>urn:sha1:f9f4a9c232357c3967394e8f6a64f9aa36430a45</id>
<content type='text'>
I would have bet money that Android used to send stderr to the logcat
log, but apparently it doesn't (anymore?). So in order to be able to
have a chance to debug weird cloud storage issues on Android, let's do
some wholesale replacement of fprintf(stderr,...) with our own version
of the INFO macro that we long ago borrowed from libdivecomputer (and
rename it to ensure we don't have a conflict there).

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>dive sites: properly reload dive site model on desktop</title>
<updated>2020-04-13T23:55:15Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-04-13T21:04:30Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=0ccc0f04bb960ac00fa6175130125c8eed752072'/>
<id>urn:sha1:0ccc0f04bb960ac00fa6175130125c8eed752072</id>
<content type='text'>
In 9310d72943390f95d6742c2d5b40f025a40b4008, resetting of the dive
sites was moved to DiveTripModelBase::reset(). This seemed like a
good idea, because it means that the location list is reloaded
every time the dive list is reset.

Unfortunately that function is only used on mobile, thus on desktop
the dive site model is not updated. Do that in
MultiFilterSortModel::resetModel(), because this is always called
when the dive list is reset. Desktop differs from mobile in that
two different models are used depending on whether we are in list
or in tree mode.

Fixes #2749

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>mobile: remove fine-grained notification</title>
<updated>2020-04-13T15:30:51Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-04-13T08:42:42Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=8b93d67106acaa4f146ee683b837d0b0cf4e31b6'/>
<id>urn:sha1:8b93d67106acaa4f146ee683b837d0b0cf4e31b6</id>
<content type='text'>
When initializing the fulltext-cache and the dive-list, every
100 dives a notification was shown. I had a feeling that this
made startup significantly slower, but that could have been
purely psychological.

Therefore I measured and indeed, removing the fine-grained
notification, it becomes *significantly* faster. For a 3500
dives test log with mobile-on-desktop:

Initialization of the fulltext: 1350 ms -&gt; 730 ms (-46%)
Initialization of the divelistmodel: 689 ms -&gt; 113 ms (-83%)

Let's remove the fine-grained notification. There *is* a visual
indication of work-in-progress anyway.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Preserve events when editing dive in planner</title>
<updated>2020-04-13T07:42:29Z</updated>
<author>
<name>Robert C. Helling</name>
<email>helling@atdotde.de</email>
</author>
<published>2020-04-12T11:39:01Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=b50d5b63adb0c10bf4eb48d0aef8c54864cd67ae'/>
<id>urn:sha1:b50d5b63adb0c10bf4eb48d0aef8c54864cd67ae</id>
<content type='text'>
The planner does not know about events except gas
changes. But if the dive comes from the log, we
should preserve the dive computer events. At least
those that happend before we started to delete
waypoints to let the planner take over.

Signed-off-by: Robert C. Helling &lt;helling@atdotde.de&gt;
</content>
</entry>
<entry>
<title>Merge pull request #2643 from bstoeger/cylinder4</title>
<updated>2020-04-11T18:03:05Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2020-04-11T18:03:05Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=6d187b5f4a3b51043fa3b53b6c73a7e0ec7f0b53'/>
<id>urn:sha1:6d187b5f4a3b51043fa3b53b6c73a7e0ec7f0b53</id>
<content type='text'>
First steps of cylinder-editing undo</content>
</entry>
<entry>
<title>cleanup: don't keep pointer-to-picture in PictureEntry</title>
<updated>2020-04-11T16:50:53Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-04-11T16:50:53Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=abf9650280819a5e1f5b15f6d21fa297f986f42e'/>
<id>urn:sha1:abf9650280819a5e1f5b15f6d21fa297f986f42e</id>
<content type='text'>
The DivePictureModel kept a pointer to picture for each entry.
Firstly, this is dangerous from a data-consistency point of view.
Secondly, the entry wasn't even used anywhere. Remove it.

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