<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/mobile-widgets, branch v4.7.7</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom?h=v4.7.7</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom?h=v4.7.7'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2018-02-08T20:29:47Z</updated>
<entry>
<title>Mobile cleanup: remove unused actions</title>
<updated>2018-02-08T20:29:47Z</updated>
<author>
<name>Jan Mulder</name>
<email>jlmulder@xs4all.nl</email>
</author>
<published>2018-02-08T17:47:56Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=72f59d54cb61e250274b43f2a5831acf3f29d0fd'/>
<id>urn:sha1:72f59d54cb61e250274b43f2a5831acf3f29d0fd</id>
<content type='text'>
Trivial removal of 2 unused Kirigami actions. These were leftovers
from the time we had a very different style of cloud account
management.

Signed-off-by: Jan Mulder &lt;jlmulder@xs4all.nl&gt;
</content>
</entry>
<entry>
<title>mobile cleanup: repair stupid mistake</title>
<updated>2018-02-02T12:13:46Z</updated>
<author>
<name>Jan Mulder</name>
<email>jlmulder@xs4all.nl</email>
</author>
<published>2018-02-02T12:05:42Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=6a53ec69ae7ec101a6a239221c64255126b5883f'/>
<id>urn:sha1:6a53ec69ae7ec101a6a239221c64255126b5883f</id>
<content type='text'>
Commits fed2c5b6a1 and 572fc4707 erroneously deleted two
aliases. That is corrected here. Yes, QML with only runtime
errors can be a pain.

Signed-off-by: Jan Mulder &lt;jlmulder@xs4all.nl&gt;
</content>
</entry>
<entry>
<title>mobile: introduce simple private helper updateAllGlobalLists()</title>
<updated>2018-01-31T13:48:14Z</updated>
<author>
<name>Jan Mulder</name>
<email>jlmulder@xs4all.nl</email>
</author>
<published>2018-01-28T16:39:01Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=e4c8d6968f7b0410c600b821df372c123539c71a'/>
<id>urn:sha1:e4c8d6968f7b0410c600b821df372c123539c71a</id>
<content type='text'>
As we need to update our new stringlist models on multiple
locations, just refactor them into a new function.

Signed-off-by: Jan Mulder &lt;jlmulder@xs4all.nl&gt;
</content>
</entry>
<entry>
<title>mobile cleanup: restyle construction of locationlist</title>
<updated>2018-01-31T13:48:14Z</updated>
<author>
<name>Jan Mulder</name>
<email>jlmulder@xs4all.nl</email>
</author>
<published>2018-01-28T14:21:28Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=494ad2654082d85846cb902556921ab62a6dbb14'/>
<id>urn:sha1:494ad2654082d85846cb902556921ab62a6dbb14</id>
<content type='text'>
See also e6e1473e6. The construction of the locationlist
was not the same as the 3 previous lists, and it needs
the inclusion of a new model file (divelocationmodel.cpp)
in the mobile app. In addition, as the mobile app is mainly
interested in a simple stringList (model) to populate a HintsText
field (or maybe later a combobox), this stringlist is added
to the model, to easy interfacing with QML.

Signed-off-by: Jan Mulder &lt;jlmulder@xs4all.nl&gt;
</content>
</entry>
<entry>
<title>mobile cleanup: unduplicate code and do not loop over dives (3)</title>
<updated>2018-01-31T13:48:14Z</updated>
<author>
<name>Jan Mulder</name>
<email>jlmulder@xs4all.nl</email>
</author>
<published>2018-01-28T10:28:01Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=83259008e763d3cc120c826f58f91a0ff62b6b92'/>
<id>urn:sha1:83259008e763d3cc120c826f58f91a0ff62b6b92</id>
<content type='text'>
See e6e1473e6. Exact same commit but here for the
list of divemaster. The careful reader will spot a
small addition to the clearDetailsEdit() QML function.
Two more field are cleared.

Signed-off-by: Jan Mulder &lt;jlmulder@xs4all.nl&gt;
</content>
</entry>
<entry>
<title>mobile cleanup: unduplicate code and do not loop over dives (2)</title>
<updated>2018-01-31T13:48:14Z</updated>
<author>
<name>Jan Mulder</name>
<email>jlmulder@xs4all.nl</email>
</author>
<published>2018-01-28T09:26:45Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=572fc470718e4a11d5df60b37e7a2a91639285c7'/>
<id>urn:sha1:572fc470718e4a11d5df60b37e7a2a91639285c7</id>
<content type='text'>
See e6e1473e6. Exact same commit but here for the
list of buddies.

Signed-off-by: Jan Mulder &lt;jlmulder@xs4all.nl&gt;
</content>
</entry>
<entry>
<title>mobile cleanup: unduplicate code and do not loop over dives (1)</title>
<updated>2018-01-31T13:48:14Z</updated>
<author>
<name>Jan Mulder</name>
<email>jlmulder@xs4all.nl</email>
</author>
<published>2018-01-28T08:52:51Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=fed2c5b6a1c71649bcb310c0bd118cb1abcf9ea0'/>
<id>urn:sha1:fed2c5b6a1c71649bcb310c0bd118cb1abcf9ea0</id>
<content type='text'>
This is the first of a set of commits that are (very) similar.
It appeared that a number of more or less static lists, which are
constructed by a loop over all dives in the logbook, were executed
when changing focus to a next dive. For example, the in this
commit addressed list of used dive suits.

What was wrong was that the suitList was linked to a dive. There
is only a need to construct the list of used suits when data is
changed (and obviously, once on startup of the app). Further, it
appeared that a lot of code was duplicated and that we can use
(in this case) the same code from the desktop completionmodels.cpp.

Basically, this commit involves the following changes:
- include completionmodels.cpp in mobile and desktop (so move
it from the desktop only category to the generic category).
- remove double code from DiveObjectHelper.cpp
- Do not differentiate in the init phase and the normal refresh
of the list
- the per dive logic is now only the getting of a previously
constructed list (in init or update of the divelist).

There are no visible changes in the UI, other than a better
performance when scrolling over dive details.

Signed-off-by: Jan Mulder &lt;jlmulder@xs4all.nl&gt;
</content>
</entry>
<entry>
<title>Make report_error() reentrant</title>
<updated>2018-01-31T13:47:26Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-01-26T09:40:04Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=8f81a22e7f26729cc2f4902ba7db8f696314539f'/>
<id>urn:sha1:8f81a22e7f26729cc2f4902ba7db8f696314539f</id>
<content type='text'>
Remove the global error buffer and pass the error string directly
to the frontend. The frontend is then responsible for accumulating
errors.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Use error callback to log errors in QMLManager</title>
<updated>2018-01-31T13:47:26Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-01-24T21:56:52Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=f8f14c5edb43aafcc1d4c689af4a91d7274a4b82'/>
<id>urn:sha1:f8f14c5edb43aafcc1d4c689af4a91d7274a4b82</id>
<content type='text'>
Instead of manually logging errors after each potentially
error-producing function, use the error-callback. The error texts
are accumulated in the QMLManager object for further use.

The text is transported to the QMLManager object via a queued
connection. Thus, errors can be reported from other threads
without having to deal with manual locking.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Remove function-call indirection in qmlmanager.cpp</title>
<updated>2018-01-25T07:39:20Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-01-24T20:23:55Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=a07b6b4d9714e32cb28b903bc89889853e30c410'/>
<id>urn:sha1:a07b6b4d9714e32cb28b903bc89889853e30c410</id>
<content type='text'>
QMLManager::tryRetrieveDataFromBackend() was a one-liner calling
void QMLManager::checkCredentialsAndExecute() with a pointer-to-member.
The latter was never called with a different pointer, therefore
fold the latter into the former and remove the indirection.

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