aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2018-07-12tests: make qprefdisplay test fileGravatar jan Iversen
Remove display tests from testpreferences and make a new file Signed-off-by: Jan Iversen <jani@apache.org>
2018-07-12core: move load of display variables to qPrefDisplay from SettingsObjectWrapperGravatar jan Iversen
ensure SettingsObjectWrapper load() loads all display variables. Copy font setting code from SettingsObjectWrapper to qPrefDisplay Signed-off-by: Jan Iversen <jani@apache.org>
2018-07-12core: sync display variables from struct preferences when ssrf terminatesGravatar jan Iversen
Add qPrefDisplay sync to sync in SettingsObjectWrapper. If a program part change display variables in struct preferences, they would not be saved on disk. Signed-off-by: Jan Iversen <jani@apache.org>
2018-07-12core: activate qPrefDisplay in SettingsObjectWrapperGravatar jan Iversen
add the prepared class qPrefDisplay to SettingsObjectWrapper and thereby making it active. As a consequence of the uniform naming standard desktop-widgets/preferences_defaults.cpp and tests/testpreferences.cpp have been updated. Signed-off-by: Jan Iversen <jani@apache.org>
2018-07-12tests: update testqml to use shared register_qml_types()Gravatar jan Iversen
add subsurface-helper.cpp to TestQML target remove local qmlRegisterType() and add register_qml_types() instead Signed-off-by: Jan Iversen <jani@apache.org>
2018-07-12ssrf: prepare subsurface_helper.cpp to be used by testqmlGravatar jan Iversen
add test for SUBSURFACE_TEST_DATA to exclude functions not used when testing Signed-off-by: Jan Iversen <jani@apache.org>
2018-07-12tests: add .gitignore to ignore qmlc filesGravatar jan Iversen
With Qt 5.11 the qml compiler is included and qmlc files created in the same directory as the qml file (at least for the qml test harness). ignore *.qmlc Signed-off-by: Jan Iversen <jani@apache.org>
2018-07-12tests: make qml test harnessGravatar jan Iversen
build a qml test runner that includes ssrf interface The qml test runner allows having qml test files. Signed-off-by: Jan Iversen <jani@apache.org>
2018-07-12ssrf: add QuickTest to test libraries.Gravatar jan Iversen
QuickTest enables QML TestCase which are used for qml testing Signed-off-by: Jan Iversen <jani@apache.org>
2018-07-12ssrf: move functions from mobile-helper to mobile-mainGravatar jan Iversen
Move few mobile only functions from mobile-helper to mobile-main remove subsurface-mobile-helper file structure is now subsurface-*-main.cpp + subsurface-helper.cpp Signed-off-by: Jan Iversen <jani@apache.org>
2018-07-12ssrf: combine subsurface-*-helper into subsurface-helperGravatar jan Iversen
combine shared functions like init_ui and run_ui in one file Signed-off-by: Jan Iversen <jani@apache.org>
2018-07-12desktop-widget: move qmlRegister from mapwidget to shared helperGravatar jan Iversen
Remove qmlRegister in desktop-widgets/mapwidget in order to have a shared registration in subsurface-helper.cpp Signed-off-by: Jan Iversen <jani@apache.org>
2018-07-12ssrf: add shared helper fileGravatar jan Iversen
add subsurface-helper.cpp to share functions between mobile and desktop move mobile qml registrations to a shared function (avoiding differences in registrations) Target is to replace current subsurface-desktop-main + subsurface-desktop-helper and subsurface-mobile-main + subsurface-mobile-helper with subsurface-*-main + subsurface-helper Signed-off-by: Jan Iversen <jani@apache.org>
2018-07-12Add comment to get-dep-lib.shGravatar Jocke
Add a comment so we remember to change the version number in versions.sh also. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
2018-07-12Match openssl versionsGravatar Jocke
The versions for openSSL in variables.sh and get-dep-lib.sh needs to match or we end up recloning the repo on every build. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
2018-07-12Add comment to variables.shGravatar Jocke
Add a comment to the variables.sh file so we don't forget to update qt version in the qt-installer-nontineractive file as well. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
2018-07-12Update non-interactive qt installationGravatar Jocke
With commit c62ce43 the Qt version where updated to 5.11.1, this updates the qt install script to match the versions of the Qt parts we want. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
2018-07-12Don't show decimals on pressuresGravatar Jocke
As per discussion in #1460 there is no point in showing decimal values for pressures in the equipment tab on desktop or in the dive edit view on mobile. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
2018-07-12Dive media: add ".mov" to list of known video extensionsGravatar Berthold Stoeger
This was an oversight in b28dba6087f0433af8ece176b64fcac54ca370a4. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2018-07-11Travis: add Qt 5.9 testingGravatar Dirk Hohndel
This is done via Fedora 27 which seemed the easiest way to get a 5.9 based distro. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-11Travis: add Qt 5.7 testingGravatar Dirk Hohndel
This is done via Fedora 26 which seemed the easiest way to get a 5.7 based distro. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-11Update mailmapGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-11core: remove clang warning in divesite.cGravatar jan Iversen
Add () in complex condition to avoid clang warning. Signed-off-by: Jan Iversen <jani@apache.org>
2018-07-10Travis: add Qt 5.6 testingGravatar Dirk Hohndel
This is done via OpenSUSE Leap/42.3 which seemed the easiest way to get a 5.6 based distro. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-10build-system: we always require QtQuick and QtLocationGravatar Dirk Hohndel
No point in listing them twice as extra components. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-10core: add version variables to qPref and make it qml loadableGravatar jan Iversen
add canonical_version and mobile_version to qPref Having a property in qPref, allows the use in qml, and prepare the interface for qml testing. Signed-off-by: Jan Iversen <jani@apache.org>
2018-07-10ssrf: mobile-helper, check return code from qmlRegisterTypeGravatar jan Iversen
add check for return code in qmlRegisterType calls, and log a message if failed There are a lot of name restrictions (e.g. must start with a capital letter). Signed-off-by: Jan Iversen <jani@apache.org>
2018-07-10core: make qPref::cloud_status the only version of the enumGravatar jan Iversen
add enum to qPref and remove elsewhere update source core to reference qPref. the enum cannot be in pref.h because it is to be used in qml and Q_ENUM need the enum to be defined as part of the class Signed-off-by: Jan Iversen <jani@apache.org>
2018-07-10UDDF import: add support for decimal comma for depthGravatar Miika Turkia
Depth values might apparently contain decimal comma instead of decimal point with some locale settings. Thus add support for both of them. Fixes #1485 Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2018-07-09Travis: build Android against Qt 5.11.1Gravatar Dirk Hohndel
Instead of dealing with the challenges of downloading and installing the official package (which really prefers to be run interactively and frequently caused Travis failures) we get the pre-packed bits from our cache instead. Less data to transfer, quicker install. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-09Android: update to use Qt5.11.1Gravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-09Latest translationsGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-09Travis: build iOS against Qt 5.11.1Gravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-09Travis: build macOS against Qt 5.11.1Gravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-09Travis: install from Homebrew instead of using a cacheGravatar Dirk Hohndel
Clearly something has changed here. When I first tried to use Homebrew on Travis the update would take often so long that the build would time out. Now it is nice and fast. So instead of wasting time with the cache let's just use Homebrew directly. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-09Travis: update to macOS 10.11 based imageGravatar Dirk Hohndel
Qt 5.11 requires macOS 10.11. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-09build.sh: provide usage message and exit on unknown argGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-09build-system: allow selection of Debug or Release buildGravatar Dirk Hohndel
So far we did a rather odd mix by default. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-09user-manual: Update Spanish translation to f3db29846Gravatar Salvador Cuñat
Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
2018-07-09user-manual: Update Spanish translation to English 220905422Gravatar Salvador Cuñat
Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
2018-07-09Update CHANGELOG.mdGravatar Berthold Stoeger
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2018-07-09Dive pictures: differentiate between IO-error and unknown formatGravatar Berthold Stoeger
Show different images for IO-error and unknow file format. Use file-extensions to recognize video files if we couldn't parse them. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2018-07-09Dive pictures: Import unknown-type iconGravatar Berthold Stoeger
Import an "unknown-type" icon from the KDE breeze theme, which is licensed under the LGPL. This icon will be shown for file for which we couldn't determine whether this is a picture or a video. Source: https://github.com/KDE/breeze-icons Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2018-07-08Install subsurface.appdata.xmlGravatar Alexander Wilms
This is required to make Subsurface show up in Gnome Software & KDE Discover Signed-off-by: Alexander Wilms <f.alexander.wilms@gmail.com>
2018-07-08CHANGELOG.md: fix bad markdown formattingGravatar Lubomir I. Ivanov
The # and <> characters introduced formatting issues, for those who wanted to view our changelog in the Github repository. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2018-07-08Dive pictures: detach ProfileWidget2 from DivePictureModelGravatar Berthold Stoeger
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 <bstoeger@mail.tuwien.ac.at>
2018-07-08Dive pictures: Recognize video filesGravatar Berthold Stoeger
When generating thumbnails, test for video files. If it is, use a dummy-thumbnail. Write only the type (video), but no image to the thumbnail cache, for forward-compatibility. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2018-07-08Dive pictures: Import video iconGravatar Berthold Stoeger
Import a video icon from the KDE breeze theme, which is licensed under the LGPL. This icon will be used as a dummy-placeholder for video files. Source: https://github.com/KDE/breeze-icons Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2018-07-07CHANGELOG.md: update with the recent save-git fixGravatar Lubomir I. Ivanov
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2018-07-07save-git: allocate user_info members on the heapGravatar Lubomir I. Ivanov
subsurface_user_info() only works on Linux (linux.c), but it doesn't allocate values on the heap. Solve this ownership problem by always allocating .name and .email on the heap in subsurface_user_info() and freeing in the caller. If subsurface_user_info() did not modify any of the values from NULL, use default ones, but allocate them on the heap too. Ref #1346 Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>