<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/desktop-widgets/preferences, 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-01-18T08:44:08Z</updated>
<entry>
<title>Whitespace only</title>
<updated>2018-01-18T08:44:08Z</updated>
<author>
<name>Jan Mulder</name>
<email>jlmulder@xs4all.nl</email>
</author>
<published>2018-01-16T13:15:31Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=e592dfe17c5a1a6d2b714752f5b27e9d531de9bb'/>
<id>urn:sha1:e592dfe17c5a1a6d2b714752f5b27e9d531de9bb</id>
<content type='text'>
Now that we properly return when raising an error, do not
if () else if(). Useles.

Signed-off-by: Jan Mulder &lt;jlmulder@xs4all.nl&gt;
</content>
</entry>
<entry>
<title>Fix preferences handling with invalid passwords</title>
<updated>2018-01-18T08:44:08Z</updated>
<author>
<name>Jan Mulder</name>
<email>jlmulder@xs4all.nl</email>
</author>
<published>2018-01-16T12:30:02Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=d28f48a793aef1e1c07a28758c97f399f8c0a93b'/>
<id>urn:sha1:d28f48a793aef1e1c07a28758c97f399f8c0a93b</id>
<content type='text'>
This fixes 2 problems related to entering passwords with
illegal characters in it:
1) Do not save an invalid password in the preferences, but keep the old
one.
2) On password change, check both old and new password for format
validity instead of pushing an invalid password to the server that
has to ignore it.

Fixes: #1048

Signed-off-by: Jan Mulder &lt;jlmulder@xs4all.nl&gt;
</content>
</entry>
<entry>
<title>Fix PreferencesNetwork::passwordUpdateSuccessful slot</title>
<updated>2018-01-18T07:56:27Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-01-16T20:58:27Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=ff9bdfd0dfa22493d6721a072d0923bf7c175434'/>
<id>urn:sha1:ff9bdfd0dfa22493d6721a072d0923bf7c175434</id>
<content type='text'>
In preferences_network.cpp, the CloudStorageAuthenticate::passwordChangeSuccessful
signal was connected to the PreferencesNetwork::passwordUpdateSuccessful
slot. This never worked, because passwordUpdateSuccessful() was declared
as a normal member function, not a slot (hooray for Qt's weird runtime-checked
signal system).

While touching this code, change the weird SIGNAL/SLOT macros to
actual member function, to at least get *some* compile-time checks.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Remove cloud_background_sync preferences option</title>
<updated>2018-01-06T18:46:07Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-01-03T17:03:28Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=59526e948aea42b977a3976293fbfdfe561dec97'/>
<id>urn:sha1:59526e948aea42b977a3976293fbfdfe561dec97</id>
<content type='text'>
The preferences flag cloud_background_sync used to be used heavily in
the mobile code, but is not used there anymore. Now, it is accessed
only in one place, but does not do what it actually says: If it is off,
the remote storage is not synced on save (but will be synced on next
load).

Syncing on save can also be prevented by unchecking the "Cloud online"
menu checkbox. Since the latter seems more logical and general
(support for non-cloud remote git repositories), remove the cloud_background_sync
option.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Cleanup: Rename preferences ui file names according the standard</title>
<updated>2018-01-02T17:12:31Z</updated>
<author>
<name>Stefan Fuchs</name>
<email>sfuchs@gmx.de</email>
</author>
<published>2018-01-01T19:23:40Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=b7494bfb2e3e4b2736a2d549e24989f8831e44a0'/>
<id>urn:sha1:b7494bfb2e3e4b2736a2d549e24989f8831e44a0</id>
<content type='text'>
Signed-off-by: Stefan Fuchs &lt;sfuchs@gmx.de&gt;
</content>
</entry>
<entry>
<title>cleanup: less than operators shall not use equal</title>
<updated>2017-12-29T21:16:58Z</updated>
<author>
<name>Jan Mulder</name>
<email>jlmulder@xs4all.nl</email>
</author>
<published>2017-12-29T18:29:23Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=75142b0a63279bac1e0b276edbf48ba3cea62862'/>
<id>urn:sha1:75142b0a63279bac1e0b276edbf48ba3cea62862</id>
<content type='text'>
See also commit c032006d91ee3c. Compare functions passed
to sort functions need to compare for less-than and not
less-or-equal.

Signed-off-by: Jan Mulder &lt;jlmulder@xs4all.nl&gt;
</content>
</entry>
<entry>
<title>Unify float calulations: use double</title>
<updated>2017-12-17T17:02:44Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2017-11-20T20:39:50Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=a748e7f239f29f5aa63a7ff221d1bd5081e698a2'/>
<id>urn:sha1:a748e7f239f29f5aa63a7ff221d1bd5081e698a2</id>
<content type='text'>
Internal floating point (FP) calculations should be performed using double
unless there is a very good reason. This avoids headaches with conversions.
Indeed, the vast majority of FP calculations were already done using double.
This patch adapts most remaining calculations. Not converted where things
that were based on binary representations and variables which weren't used
anyway.

An analysis of all instances follows:

core/plannernotes.c, l.404:

This was a comparison between two floats. On the left side, first an integer
was cast to float then multiplied with and integer and divided by a constant
double. The right hand side was an integer cast to a float. Simply divide by
1000.0 first to convert to double and continue with calculations. On the right
hand side, remove the cast, because the integer will be implicitely cast to
double for comparison. This conversion actually emits less instructions,
because no conversion to double and back is performed.

core/planner.c, l.613:

Same analysis as previous case.

subsurface-desktop-main.cpp, l.155:

A local variable representing the version OpenGL version. Turn this into
integer logic. Not only does this avoid dreaded FP rounding issues, it also
works correctly for minor version &gt; 10 (not that such a thing is to be
expected anytime soon).

abstractpreferenceswidget.[h/cpp]:

A widget where the position is described as a float. Turn into double.

desktop-widgets/divelogexportdialog.cpp, l.313:

total_weight is described as float. Use double arithmetics instead. This
instance fixes a truncation warning emitted by gcc.
</content>
</entry>
<entry>
<title>Use better aliases for icons.</title>
<updated>2017-12-01T07:14:46Z</updated>
<author>
<name>Martin Měřinský</name>
<email>mermar@centrum.cz</email>
</author>
<published>2017-11-29T09:57:08Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=8ef87e618afd1ec943c0f42a852b3b393c1e2113'/>
<id>urn:sha1:8ef87e618afd1ec943c0f42a852b3b393c1e2113</id>
<content type='text'>
Icon aliases were complete mess.
Some icons had alias some didn't.
Named with underscores vs. hyphens vs. camelCase.
Lower vs. upper case.
"ICON" prefix vs. suffix vs. nothing.
With vs. without filename suffix.
Some didn't make sence. Eg. mapwidget-marker-gray
(I can see, it's grey, but what does it represent?)
Some were duplicated, eg warning vs. warning-icon.
Some were name after widget, which is wrong.

Do not reinvent wheel. Use widely used naming scheme
close to Freedesktop Icon Naming Specification. This
will enable usage of common icons from current set in
the future. Thus Subsurface will fit nicely to GUI.

This changes icon aliases to one, easy grep-able style.

Signed-off-by: Martin Měřinský &lt;mermar@centrum.cz&gt;
</content>
</entry>
<entry>
<title>Use icons relative path.</title>
<updated>2017-12-01T07:14:46Z</updated>
<author>
<name>Martin Měřinský</name>
<email>mermar@centrum.cz</email>
</author>
<published>2017-11-28T07:37:01Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=0855f6f31577789888aa6d9b955c1bc46ed34d40'/>
<id>urn:sha1:0855f6f31577789888aa6d9b955c1bc46ed34d40</id>
<content type='text'>
Icon paths are defined in one place only - application's embedded resources.

Signed-off-by: Martin Měřinský &lt;mermar@centrum.cz&gt;
</content>
</entry>
<entry>
<title>Revert "Use icons relative path."</title>
<updated>2017-11-29T22:05:07Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2017-11-29T22:04:52Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=fd9c905ba357a37fe13338600bbc2b669c867f6f'/>
<id>urn:sha1:fd9c905ba357a37fe13338600bbc2b669c867f6f</id>
<content type='text'>
This reverts commit b0d98f6e269be9560de1b9c140855c85fecf1dd1.
</content>
</entry>
</feed>
