subsurface/desktop-widgets
Lubomir I. Ivanov 56e755b711 Use lrint() for all degrees_t related rounding
In certain places the '(int)' cast is used, while in other the
llrint() or lrint() functions. Make the conversation from degrees
in the 'double' form to the 'int' degrees_t consistent using lrint().

lrint() is the function which should give the best results,
because it accepts a 'double' and results in a 'long'
even if degrees_t is 'int'. If the truncation from 'long' to 'int'
is discarding some of the precision then the next step
would be to turn degrees_t into a 64bit signed integer type.

Possible fix for #625.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2017-10-09 13:38:58 +03:00
..
css Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
plugins [Facebook] Enable the send button on edit 2017-10-02 08:54:03 -07:00
preferences Preferences units dialog: Tab order and silence warnings 2017-10-09 11:49:29 +03:00
statistics Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
tab-widgets Disable editDiveSiteButton without dive site name 2017-10-07 08:16:53 -07:00
about.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
about.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
about.ui For About UI window layout, use SetFixedSize. 2017-03-07 21:45:05 -08:00
btdeviceselectiondialog.cpp BLE: create controller from QBtDeviceInfo 2017-09-17 09:58:11 -07:00
btdeviceselectiondialog.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
btdeviceselectiondialog.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
CMakeLists.txt Remove some very small marble leftovers 2017-09-16 08:36:30 -07:00
configuredivecomputerdialog.cpp Configure ostc4: Wire up reset button 2017-08-01 13:39:35 -07:00
configuredivecomputerdialog.h Remove old duplicated code 2017-06-21 18:43:15 -07:00
configuredivecomputerdialog.ui Configure ostc4: Correct button sensitivity range 2017-08-01 13:39:35 -07:00
divecomponentselection.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
divecomputermanagementdialog.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
divecomputermanagementdialog.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
divecomputermanagementdialog.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
divelistview.cpp dive-list: maintain a single instance of DiveTripModel 2017-10-03 21:34:43 -07:00
divelistview.h divelist: prevent a crash for missing column width 2017-10-03 15:43:03 -07:00
divelogexportdialog.cpp Another unused variable 2017-08-26 14:48:05 -07:00
divelogexportdialog.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
divelogexportdialog.ui Export to TeX file initialized 2016-10-11 22:00:08 -07:00
divelogimportdialog.cpp Fix crash on manually added ZXU/DL7 file 2017-09-11 07:21:43 -07:00
divelogimportdialog.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
divelogimportdialog.ui Move subsurface-core to core and qt-mobile to mobile-widgets 2016-04-04 22:33:58 -07:00
divepicturewidget.cpp Fix some warnings 2017-05-06 11:12:28 -07:00
divepicturewidget.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
diveplanner.cpp Remove disfunctional asc. rate signals and add disable keyboardTracking 2017-10-07 08:42:06 -07:00
diveplanner.h Planner settings ascend and descende rate: Wire up UI elements correctly 2017-10-04 08:41:10 +02:00
diveplanner.ui Move subsurface-core to core and qt-mobile to mobile-widgets 2016-04-04 22:33:58 -07:00
diveshareexportdialog.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
diveshareexportdialog.h Random whitespace cleanup 2017-05-27 11:07:20 -07:00
diveshareexportdialog.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
downloadfromdivecomputer.cpp DC download: show info messages on Mac 2017-09-17 15:04:14 -07:00
downloadfromdivecomputer.h Reduce the scope of variables 2017-05-27 11:07:19 -07:00
downloadfromdivecomputer.ui DC download: show info messages on Mac 2017-09-17 15:04:14 -07:00
filterwidget.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
groupedlineedit.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
groupedlineedit.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
kmessagewidget.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
kmessagewidget.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
listfilter.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
locationinformation.cpp Use lrint() for all degrees_t related rounding 2017-10-09 13:38:58 +03:00
locationinformation.h LocationInformationWidget: make sure to clean out fields 2017-10-07 08:16:53 -07:00
locationInformation.ui Tab order for location information dialog 2017-10-07 21:53:28 +03:00
mainwindow.cpp [Facebook] Use statusbar instead of popup messages 2017-10-02 08:54:03 -07:00
mainwindow.h mainwindow: rename GLOBE_MAXIMIZED to MAP_MAXIMIZED 2017-07-28 07:31:11 -07:00
mainwindow.ui mainwindow: rename "actionViewGlobe" to "actionViewMap" 2017-07-28 07:31:11 -07:00
mapwidget.cpp map-widget: don't crash if the map QML failed to load 2017-10-07 08:09:05 -07:00
mapwidget.h Map: try to wait for Map to load 2017-07-28 22:06:34 -07:00
modeldelegates.cpp remove Marble from the source tree 2017-09-04 07:46:35 -07:00
modeldelegates.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
notificationwidget.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
notificationwidget.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
plannerDetails.ui Bring back style sheet HTML for planner output 2017-02-24 01:06:09 -08:00
plannerSettings.ui Add a checkbox to turn off plan variations 2017-09-20 08:54:41 -07:00
printdialog.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
printdialog.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
printer.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
printer.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
printoptions.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
printoptions.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
printoptions.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
qtwaitingspinner.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
qtwaitingspinner.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
renumber.ui Renumber ui: make it obvious which dives get renumbered 2016-12-27 13:10:18 -08:00
searchbar.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
setpoint.ui Correct "set-point" -> "setpoint" and window title setpoint change 2017-03-04 12:04:20 -08:00
shiftimagetimes.ui Picture feature: Improve UI and translation of shift image times dialog 2017-04-30 12:44:58 -07:00
shifttimes.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
simplewidgets.cpp simplewidgets.cpp: silence warning about parentheses 2017-06-11 15:57:08 -07:00
simplewidgets.h Picture feature: Improve UI and translation of shift image times... 2017-05-01 21:23:42 -07:00
starwidget.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
starwidget.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
subsurfacewebservices.cpp Use helper function dive_endtime() where apropriate 2017-10-01 23:55:37 +03:00
subsurfacewebservices.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
tableview.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
tableview.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
tableview.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
tagwidget.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
tagwidget.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
templateedit.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
templateedit.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
templateedit.ui templateedit.ui: give the layout for "Border width" unique name 2017-03-12 09:19:03 -07:00
templatelayout.cpp Add a checkbox to turn off plan variations 2017-09-20 08:54:41 -07:00
templatelayout.h Creation of dive duration string and surface interval string 2017-05-26 15:50:52 -07:00
undocommands.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
undocommands.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
updatemanager.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
updatemanager.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
urldialog.ui Make the URL dialog contain QLineEdit 2017-01-12 14:06:54 -08:00
usermanual.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
usermanual.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
usersurvey.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
usersurvey.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
usersurvey.ui fix: User survey UI. 2017-03-06 06:40:00 -08:00
webservices.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00