subsurface/desktop-widgets
Jeremie Guichard 597539ce39 Fix double to int truncation in C++ code
Wfloat-conversion enabled for C++ part of the code
Fix warnings raised by the flag using lrint

Original issue reported on the mailing list:
The ascent/descent rates are sometimes not what is expected.
E.g. setting the ascent rate to 10m/min results in an actual
ascent rate of 9m/min.
This is due to truncating the ascent rate preference,
then effectively rounding up the time to reach each stop to 2s intervals.
The result being that setting the ascent rate to 10m/min
results in 20s to ascend 3m (9m/min), when it should be exactly 18s.

Reported-by: John Smith <noseygit@hotmail.com>
Reported-by: Rick Walsh <rickmwalsh@gmail.com>
Signed-off-by: Jeremie Guichard <djebrest@gmail.com>
2017-03-24 09:39:25 -07:00
..
css Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
marble Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
plugins facebook > Facebook 2017-02-21 07:03:10 -08:00
preferences Prefix and suffix changes in preferences and planner preferences 2017-03-18 08:34:04 -07:00
statistics Move subsurface-core to core and qt-mobile to mobile-widgets 2016-04-04 22:33:58 -07:00
about.cpp About dialog: hook up Credits button 2017-02-18 16:22:39 -08:00
about.h About dialog: hook up Credits button 2017-02-18 16:22:39 -08:00
about.ui For About UI window layout, use SetFixedSize. 2017-03-07 21:45:05 -08:00
btdeviceselectiondialog.cpp btdeviceselectiondialog.cpp: fix unused variable 2015-11-07 22:22:41 +02:00
btdeviceselectiondialog.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
btdeviceselectiondialog.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
CMakeLists.txt Fix building of Facebook support 2016-09-22 17:12:00 -07:00
configuredivecomputerdialog.cpp Fix double to int truncation in C++ code 2017-03-24 09:39:25 -07:00
configuredivecomputerdialog.h Move subsurface-core to core and qt-mobile to mobile-widgets 2016-04-04 22:33:58 -07:00
configuredivecomputerdialog.ui Use abbreviations with dots. 2017-03-11 08:09:07 -08:00
divecomponentselection.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
divecomputermanagementdialog.cpp Move subsurface-core to core and qt-mobile to mobile-widgets 2016-04-04 22:33:58 -07:00
divecomputermanagementdialog.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
divecomputermanagementdialog.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
divelistview.cpp Silence warning about unused parameter 2017-03-11 08:51:46 -08:00
divelistview.h Ignore double clicks on the divelist 2017-01-28 07:20:03 -08:00
divelogexportdialog.cpp missing dot 2017-02-21 07:03:10 -08:00
divelogexportdialog.h Export to TeX file initialized 2016-10-11 22:00:08 -07:00
divelogexportdialog.ui Export to TeX file initialized 2016-10-11 22:00:08 -07:00
divelogimportdialog.cpp Use 'Temp.' for abbreviations. 2017-03-11 08:09:07 -08:00
divelogimportdialog.h Hooking up av1.xslt for log import 2016-12-31 09:56:08 +02:00
divelogimportdialog.ui Move subsurface-core to core and qt-mobile to mobile-widgets 2016-04-04 22:33:58 -07:00
divepicturewidget.cpp Don't trust event->timestamp() 2016-12-26 13:09:01 -08:00
divepicturewidget.h Drag and Drop Images 2015-11-24 09:22:16 -08:00
diveplanner.cpp Fix double to int truncation in C++ code 2017-03-24 09:39:25 -07:00
diveplanner.h Minimum gas calculation - Calculations and UI parameters 2017-03-11 08:01:35 -08:00
diveplanner.ui Move subsurface-core to core and qt-mobile to mobile-widgets 2016-04-04 22:33:58 -07:00
diveshareexportdialog.cpp Move subsurface-core to core and qt-mobile to mobile-widgets 2016-04-04 22:33:58 -07:00
diveshareexportdialog.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
diveshareexportdialog.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
downloadfromdivecomputer.cpp Fix double to int truncation in C++ code 2017-03-24 09:39:25 -07:00
downloadfromdivecomputer.h Move subsurface-core to core and qt-mobile to mobile-widgets 2016-04-04 22:33:58 -07:00
downloadfromdivecomputer.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
filterwidget.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
globe.cpp Fix double to int truncation in C++ code 2017-03-24 09:39:25 -07:00
globe.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
groupedlineedit.cpp Fix double to int truncation in C++ code 2017-03-24 09:39:25 -07:00
groupedlineedit.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
kmessagewidget.cpp Fix double to int truncation in C++ code 2017-03-24 09:39:25 -07:00
kmessagewidget.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
listfilter.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
locationinformation.cpp Fix double to int truncation in C++ code 2017-03-24 09:39:25 -07:00
locationinformation.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
locationInformation.ui Move subsurface-core to core and qt-mobile to mobile-widgets 2016-04-04 22:33:58 -07:00
maintab.cpp Fix double to int truncation in C++ code 2017-03-24 09:39:25 -07:00
maintab.h Get initial depth/duration correct when manually adding dive 2017-03-04 12:16:49 -08:00
maintab.ui Add depth and duration fields to maintab 2017-03-04 12:16:49 -08:00
mainwindow.cpp Fix double to int truncation in C++ code 2017-03-24 09:39:25 -07:00
mainwindow.h Facebook integration: change the menu entry to disconnect 2017-01-01 22:24:48 -08:00
mainwindow.ui Menu keyboard shortcuts in translations 2017-02-23 03:13:00 -08:00
modeldelegates.cpp Fix double to int truncation in C++ code 2017-03-24 09:39:25 -07:00
modeldelegates.h modeldelegates: remove printing related delegates 2015-11-10 09:08:16 -08:00
notificationwidget.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
notificationwidget.h Move subsurface-core to core and qt-mobile to mobile-widgets 2016-04-04 22:33:58 -07:00
plannerDetails.ui Bring back style sheet HTML for planner output 2017-02-24 01:06:09 -08:00
plannerSettings.ui Prefix and suffix changes in preferences and planner preferences 2017-03-18 08:34:04 -07:00
printdialog.cpp Printing: support the "Border width" setting for templates 2017-03-06 20:08:39 -08:00
printdialog.h Lazy Initialize QPrinter 2016-01-08 08:04:58 -08:00
printer.cpp Fix double to int truncation in C++ code 2017-03-24 09:39:25 -07:00
printer.h Start transition from QWebKit to QWebEngine 2016-12-30 19:43:00 +01:00
printoptions.cpp Fix include paths 2016-04-05 09:40:58 -07:00
printoptions.h Printing: support the "Border width" setting for templates 2017-03-06 20:08:39 -08: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 Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
shifttimes.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
simplewidgets.cpp Remove unused DateWidget with its icon. 2017-03-13 10:25:51 -07:00
simplewidgets.h Remove unused DateWidget with its icon. 2017-03-13 10:25:51 -07:00
starwidget.cpp Move subsurface-core to core and qt-mobile to mobile-widgets 2016-04-04 22:33:58 -07:00
starwidget.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
subsurfacewebservices.cpp Include geolocation info on export XML (divelogs.de) 2017-02-18 10:48:33 -08:00
subsurfacewebservices.h Silence warnings in subsurfacewebservices.h 2016-03-09 21:50:26 -08:00
tableview.cpp Mac: more generous margins for table columns 2017-01-01 14:23:49 +02:00
tableview.h Move subsurface-core to core and qt-mobile to mobile-widgets 2016-04-04 22:33:58 -07:00
tableview.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
tagwidget.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
tagwidget.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
templateedit.cpp Fix double to int truncation in C++ code 2017-03-24 09:39:25 -07:00
templateedit.h Printing: support the "Border width" setting for templates 2017-03-06 20:08:39 -08:00
templateedit.ui templateedit.ui: give the layout for "Border width" unique name 2017-03-12 09:19:03 -07:00
templatelayout.cpp Fix double to int truncation in C++ code 2017-03-24 09:39:25 -07:00
templatelayout.h Fix include paths 2016-04-05 09:40:58 -07:00
undocommands.cpp Move subsurface-core to core and qt-mobile to mobile-widgets 2016-04-04 22:33:58 -07:00
undocommands.h Move subsurface-core to core and qt-mobile to mobile-widgets 2016-04-04 22:33:58 -07:00
updatemanager.cpp Remove space from the beginning of the line. 2017-02-21 07:03:10 -08:00
updatemanager.h Cloud storage: modify protocol for checking cloud connectivity 2015-11-18 17:57:13 -08:00
urldialog.ui Make the URL dialog contain QLineEdit 2017-01-12 14:06:54 -08:00
usermanual.cpp Start transition from QWebKit to QWebEngine 2016-12-30 19:43:00 +01:00
usermanual.h Start transition from QWebKit to QWebEngine 2016-12-30 19:43:00 +01:00
usersurvey.cpp Move subsurface-core to core and qt-mobile to mobile-widgets 2016-04-04 22:33:58 -07:00
usersurvey.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -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