subsurface/qt-ui
Dirk Hohndel 5511a0e14e Ignore units when entering values for equipment
Note that this is IMHO the wrong fix. Because we shouldn't just ignore the
units, we should do correct conversions.

Before this patch, if the user is in metric mode and then types in 4.5kg
or 10lbs for a weight, Subsurface ignores the entry and throws it away.
Very much not the expected behavior.

With this patch Subsurface will take the value, but ignore the unit and
assume that the user meant kg (since it's in metric mode). Still not
really the expected behavior for 10lbs (which is now 10kg), but if the
user typed 4.5kg (which admittedly is much more likely), then with this
change Subsurface will do the right thing.

Fixes #395

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-01-02 09:12:32 -08:00
..
css Fix TableWidget ( equipment ones ) on dark scheme. 2013-12-12 03:26:39 +01:00
marble Work around broken Marble on Debian 2013-05-18 09:49:37 -07:00
about.cpp Fix all leak-at-exit from singletons in Subsurface 2013-11-30 09:28:42 -08:00
about.h Make the classes generated by uic be real members of our classes 2013-10-03 12:13:48 -07:00
about.ui Removed another unused text 2013-11-29 12:11:12 -08:00
completionmodels.cpp Fix all leak-at-exit from singletons in Subsurface 2013-11-30 09:28:42 -08:00
completionmodels.h Added a custom widget for tagging dives 2013-11-02 03:37:31 +01:00
csvimportdialog.cpp Use field numbers in CSV import instead of indexes 2013-12-29 04:13:18 -08:00
csvimportdialog.h Add optional support for stopdepth import from csv 2013-11-21 15:54:28 -08:00
csvimportdialog.ui Use field numbers in CSV import instead of indexes 2013-12-29 04:13:18 -08:00
divecomputermanagementdialog.cpp Don't check if pointer is valid before deleting it. 2013-12-24 07:24:11 -08:00
divecomputermanagementdialog.h Random white space cleanup 2013-10-15 04:37:31 -07:00
divecomputermanagementdialog.ui Add application icon to dialogs 2013-11-30 12:01:32 -08:00
divelistview.cpp Silence a few warnings 2013-12-20 09:53:06 -08:00
divelistview.h Divelogs.de: add a divelist context menu item for upload 2013-12-09 15:51:17 +02:00
diveplanner.cpp use qMakePair helper instead of QPair<int,int> and such. 2013-12-24 07:24:12 -08:00
diveplanner.h Don't use QList if sizeof(item) > void*. 2013-12-24 07:24:11 -08:00
diveplanner.ui Add some limits to the GF's 2013-12-04 15:49:55 -08:00
downloadfromdivecomputer.cpp Fix warning about initialization ordering 2013-12-27 11:07:59 -08:00
downloadfromdivecomputer.h Disable DC device node if it is not needed 2013-12-27 11:04:35 -08:00
downloadfromdivecomputer.ui Enable libdivecomputer log or dump from the UI 2013-12-24 16:26:00 -08:00
globe.cpp Small code simplification 2013-12-26 08:42:20 -08:00
globe.h Fixes Setting the dive-location via the map. 2013-12-02 09:44:55 -08:00
graphicsview-common.cpp graphicsview-common.cpp: Add more contrast to certain B/W colors 2013-10-15 04:23:43 -07:00
graphicsview-common.h Use the same line dimensions as the profile, on the planner. 2013-09-16 19:21:13 -03:00
groupedlineedit.cpp Removed obsolete code. 2013-12-20 09:53:04 -08:00
groupedlineedit.h Simplify the code by removing a few options from the if. 2013-12-20 09:53:04 -08:00
kmessagewidget.cpp Added the Message and the Buttons on the Equipment Tab 2013-09-18 23:23:04 -03:00
kmessagewidget.h Random white space cleanup 2013-10-15 04:37:31 -07:00
maintab.cpp Clear equipment tab for trips display 2013-12-27 17:31:23 -08:00
maintab.h Remove nonexisting member from header 2013-12-28 14:55:23 -08:00
maintab.ui Added Keyboard Navigation for the Star Widget 2013-12-20 09:53:05 -08:00
mainwindow.cpp Update tank model with custom tanks used in XML files 2013-12-28 14:56:01 -08:00
mainwindow.h Open external links in default browser 2013-12-05 07:31:29 -08:00
mainwindow.ui Kill the use of CSS - Fixes a Lot of issues on dark color schemes. 2013-12-12 03:26:39 +01:00
modeldelegates.cpp Copyed the code from Dirk that solved the mac issue on cylinders. 2013-12-12 03:26:39 +01:00
modeldelegates.h Fix TableWidget ( equipment ones ) on dark scheme. 2013-12-12 03:26:39 +01:00
models.cpp Ignore units when entering values for equipment 2014-01-02 09:12:32 -08:00
models.h Added a language preference to the Settings. 2013-12-06 09:49:05 -08:00
preferences.cpp Make default font setting actually work 2013-12-18 13:38:40 -08:00
preferences.h Added a filter option to the Language Chooser 2013-12-06 11:56:00 -08:00
preferences.ui Update the diffrent units when switching system 2013-12-08 16:18:00 +01:00
printdialog.cpp PrintDialog: reset the progress bar each time the dialog opens 2013-12-04 15:52:21 +02:00
printdialog.h PrintDialog: reset the progress bar each time the dialog opens 2013-12-04 15:52:21 +02:00
printlayout.cpp Silence signed vs. unsigned compare warning 2013-12-08 09:41:42 +01:00
printlayout.h Don't use QList if sizeof(item) > void*. 2013-12-24 07:24:11 -08:00
printoptions.cpp Print: adjustments to PrintDialog 2013-11-30 18:56:25 +02:00
printoptions.h Make the classes generated by uic be real members of our classes 2013-10-03 12:13:48 -07:00
printoptions.ui Remove more unused windowTitle properties 2013-11-29 11:02:15 -08:00
profilegraphics.cpp Fix typo 2013-12-29 09:20:26 -08:00
profilegraphics.h Don't use QList if sizeof(item) > void*. 2013-12-24 07:24:11 -08:00
renumber.ui Renumber dialog should default to start at 1 2013-12-07 06:49:52 -08:00
shifttimes.ui Add application icon to dialogs 2013-11-30 12:01:32 -08:00
simplewidgets.cpp Fix all leak-at-exit from singletons in Subsurface 2013-11-30 09:28:42 -08:00
simplewidgets.h Fix all leak-at-exit from singletons in Subsurface 2013-11-30 09:28:42 -08:00
starwidget.cpp Added Keyboard Navigation for the Star Widget 2013-12-20 09:53:05 -08:00
starwidget.h Added Keyboard Navigation for the Star Widget 2013-12-20 09:53:05 -08:00
subsurfacewebservices.cpp Enable https for Windows binaries 2013-12-28 21:04:07 -08:00
subsurfacewebservices.h Get more descriptive error messages when uploading to divelogs.de 2013-12-20 09:53:05 -08:00
tableview.cpp Fix TableWidget ( equipment ones ) on dark scheme. 2013-12-12 03:26:39 +01:00
tableview.h Partially revert d72c69db7a and fix its errors 2013-11-13 11:58:47 +09:00
tableview.ui Remove more unused windowTitle properties 2013-11-29 11:02:15 -08:00
tagwidget.cpp Do not New / Delete the item, use the Stack. 2013-12-20 09:53:04 -08:00
tagwidget.h Fix the inconsistent behaviour of QCompleter 2013-11-02 17:10:34 +01:00
webservices.ui Webservices: make the dialog title more generic 2013-12-10 05:52:26 +01:00