subsurface/qt-ui
Thiago Macieira b22f1da59e Fix all leak-at-exit from singletons in Subsurface
Subsurface creates a lot of singleton instances on demand, but nothing
ever deleted them. Since they are singletons, these memory allocations
are technically not leaks. However, they clutter the output in valgrind
and other memory analysers, hiding the real issues.

The solution is to delete these items at exit. For the models and for
gettextFromC, the solution is to use a QScopedPointer, which will delete
its payload when it gets destroyed. For the dialogs and other widgets,
we can't do that: they need to be deleted before QApplication exits, so
we just set the parent in all of them to the main window.

Signed-off-by: Thiago Macieira <thiago@macieira.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-11-30 09:28:42 -08:00
..
css Added missing CSS file. 2013-09-02 05:57:08 -03: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 Add optional support for stopdepth import from csv 2013-11-21 15:54:28 -08:00
csvimportdialog.h Add optional support for stopdepth import from csv 2013-11-21 15:54:28 -08:00
csvimportdialog.ui Don't use lowercase 'o' for O2 2013-11-29 10:16:47 -08:00
divecomputermanagementdialog.cpp Fix all leak-at-exit from singletons in Subsurface 2013-11-30 09:28:42 -08:00
divecomputermanagementdialog.h Random white space cleanup 2013-10-15 04:37:31 -07:00
divecomputermanagementdialog.ui Converting the device_info list into a Qt data structure 2013-06-18 00:24:28 -07:00
divelistview.cpp Remove use of uninitialized variable nr 2013-11-30 07:36:13 -08:00
divelistview.h Remember Trip Selection. 2013-11-26 11:25:50 -08:00
diveplanner.cpp Fix all leak-at-exit from singletons in Subsurface 2013-11-30 09:28:42 -08:00
diveplanner.h Delete the graphics items for the ticks and labels in the ruler 2013-11-30 09:25:16 -08:00
diveplanner.ui Remove more unused windowTitle properties 2013-11-29 11:02:15 -08:00
downloadfromdivecomputer.cpp Fix all leak-at-exit from singletons in Subsurface 2013-11-30 09:28:42 -08:00
downloadfromdivecomputer.h Make the classes generated by uic be real members of our classes 2013-10-03 12:13:48 -07:00
downloadfromdivecomputer.ui implement device probe in C 2013-09-16 22:40:47 -03:00
globe.cpp Turn off dive location edit hint when cancelling dive edit 2013-11-29 13:12:44 -08:00
globe.h Disables zooming by double click and context menu on marble. 2013-11-22 07:40:32 -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 Work around QPlainTextEdit / QPainter bug on Mac 2013-11-22 09:44:28 -08:00
groupedlineedit.h Corrected indentation, added license/copyright 2013-11-02 17:10:30 +01: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 Separate text labels for air and water temperatures 2013-11-30 07:18:39 -08:00
maintab.h Make it possible to hide some columns on the Cylinders Equipment pane. 2013-11-28 15:28:15 -08:00
maintab.ui Minor text cleanup 2013-11-30 07:19:48 -08:00
mainwindow.cpp Changing the preferences should update the Add Dive interface 2013-11-26 12:28:16 -08:00
mainwindow.h Good deal of code Cleanup. 2013-11-15 09:13:58 +09:00
mainwindow.ui Remove more unused windowTitle properties 2013-11-29 11:02:15 -08:00
modeldelegates.cpp Print: fix missing vertical line at the last column 2013-11-30 17:35:55 +02:00
modeldelegates.h Fixed the Tab behavior on the QCombobox Delegate 2013-10-15 09:49:12 -07:00
models.cpp Fix all leak-at-exit from singletons in Subsurface 2013-11-30 09:28:42 -08:00
models.h Make it possible to hide some columns on the Cylinders Equipment pane. 2013-11-28 15:28:15 -08:00
plotareascene.cpp Add Qtr_ macros that uses gettext in a tr() compatible manner 2013-04-13 20:44:02 -07:00
plotareascene.h Add Qtr_ macros that uses gettext in a tr() compatible manner 2013-04-13 20:44:02 -07:00
preferences.cpp Fix all leak-at-exit from singletons in Subsurface 2013-11-30 09:28:42 -08:00
preferences.h Added a configuration option to have gf_low apply at max depth instead of at deepest ceiling. 2013-11-21 08:11:40 -08:00
preferences.ui Fix incorrect string for PPO2 2013-11-29 10:09:14 -08:00
printdialog.cpp Fix all leak-at-exit from singletons in Subsurface 2013-11-30 09:28:42 -08:00
printdialog.h Print: add a print preview for testing purposes 2013-07-10 19:27:10 +03:00
printlayout.cpp Print: yet another font adjustment for the profile table 2013-11-30 17:37:27 +02:00
printlayout.h printlayout.cpp: Remove convertPixmapToGrayscale() 2013-10-15 04:24:27 -07: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 More strings to be translated 2013-11-30 07:53:26 -08:00
profilegraphics.h Enable the 'Remove Event' callback. 2013-11-19 17:58:18 -08:00
renumber.ui Make the renumbering of dives accept numbers up to 99999 2013-10-01 09:47:33 -07:00
shifttimes.ui Fix dialog margins and spacing 2013-11-30 07:53:12 -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 Fix uninitialised variable read 2013-11-30 09:24:59 -08:00
starwidget.h Fix uninitialised variable read 2013-11-30 09:24:59 -08:00
subsurfacewebservices.cpp Fix all leak-at-exit from singletons in Subsurface 2013-11-30 09:28:42 -08:00
subsurfacewebservices.h Added the skeleton for the Download / Upload from Divelogs.de 2013-10-24 22:52:11 -02:00
tableview.cpp Fixes the correct sizes of the tables when first open. 2013-11-22 07:32:53 -08: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 Remove debug output left in the previous commit by mistake 2013-11-07 16:32:23 +09:00
tagwidget.h Fix the inconsistent behaviour of QCompleter 2013-11-02 17:10:34 +01:00
webservices.ui Created a 'WebService' dialog that will handle download and upload. 2013-10-24 22:30:21 -02:00