subsurface/qt-ui
Lubomir I. Ivanov 47c0ddbf30 Print: enable printing with the new profile
Some weird things happen if we use a local instance of the
ProfileWidget2 class in printProfileDives(). Once we
exit the printing dialog the profile crashes, which could
hint of singleton issues.

Instead we are going to use the already active instance of
the class which we can retrieve from MainWindow. This should
also be faster because the class is pretty heavy.

In such a case the cleanup at the end of printProfileDives()
is still relevant (removed in ac9a23ef3b). First we
resize the widget for printing purposes and then resize it
back to the original values and re-plot the current selected
dive in the dive list.

Fixes #477, #478

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-03-27 10:58:22 -07:00
..
css Fix TableWidget ( equipment ones ) on dark scheme. 2013-12-12 03:26:39 +01:00
marble Resync included header with upstream 2014-01-15 15:49:50 +07:00
profile Profile2: add use of the isGrayscale flag when getting a color 2014-03-27 10:58:22 -07:00
about.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
about.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
about.ui SubsurfaceAbout class cleanup. 2014-02-08 08:00:27 -08:00
completionmodels.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
completionmodels.h Put include guard to every header 2014-02-11 12:37:01 -08:00
divecomputermanagementdialog.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
divecomputermanagementdialog.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
divecomputermanagementdialog.ui Make some dialogs modal to MainWindow 2014-03-12 10:14:17 -07:00
divelistview.cpp Enable posibility to add dives to trip below 2014-03-20 09:40:28 -07:00
divelistview.h Enable posibility to add dives to trip below 2014-03-20 09:40:28 -07:00
divelogimportdialog.cpp Convert other users of showError() to the new world order 2014-03-14 12:36:06 -07:00
divelogimportdialog.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
divelogimportdialog.ui Tune CVS import dialog 2014-02-27 11:44:59 -08:00
diveplanner.cpp Don't crash if we try to save a empty plan 2014-03-23 17:24:42 -07:00
diveplanner.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
diveplanner.ui Add some limits to the GF's 2013-12-04 15:49:55 -08:00
downloadfromdivecomputer.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
downloadfromdivecomputer.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
downloadfromdivecomputer.ui Enable libdivecomputer log or dump from the UI 2013-12-24 16:26:00 -08:00
exif.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
exif.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
globe.cpp Introduce NO_MARBLE define, make GlobeGPS a dummy 2014-03-27 10:40:06 -07:00
globe.h Introduce NO_MARBLE define, make GlobeGPS a dummy 2014-03-27 10:40:06 -07:00
graphicsview-common.cpp Fix colors on the new profile. 2014-03-07 20:37:17 -08:00
graphicsview-common.h Fix colors on the new profile. 2014-03-07 20:37:17 -08:00
groupedlineedit.cpp Whitespace cleanup 2014-03-03 13:29:22 -08:00
groupedlineedit.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
kmessagewidget.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
kmessagewidget.h Another small tweak to whitespace tool 2014-03-05 13:02:23 -08:00
maintab.cpp Redraw profile when manipulating cylinders 2014-03-25 07:53:37 -07:00
maintab.h Show temperature units in the label when editing dive 2014-03-10 21:10:27 -07:00
maintab.ui Expand tags approach to divemaster field 2014-01-19 13:57:40 -08:00
mainwindow.cpp Remove printing when building for Android 2014-03-27 10:42:07 -07:00
mainwindow.h Remove usermanual when building for Android 2014-03-27 10:41:52 -07:00
mainwindow.ui Remove the old profile from the main screen of Subsurface 2014-03-07 08:54:20 -08:00
modeldelegates.cpp Better handling of keyboard on the inline edition on equipment 2014-03-20 09:49:33 -07:00
modeldelegates.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
models.cpp Enable parts of planner based on define 2014-03-23 17:24:40 -07:00
models.h Enable parts of planner based on define 2014-03-23 17:24:40 -07:00
preferences.cpp Support save / load for the Animation Speed on the Preferences 2014-03-11 17:41:41 -07:00
preferences.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
preferences.ui Support save / load for the Animation Speed on the Preferences 2014-03-11 17:41:41 -07:00
printdialog.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
printdialog.h Remove printing when building for Android 2014-03-27 10:42:07 -07:00
printlayout.cpp Print: enable printing with the new profile 2014-03-27 10:58:22 -07:00
printlayout.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
printoptions.cpp Print: adjustments to PrintDialog 2013-11-30 18:56:25 +02:00
printoptions.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
printoptions.ui Remove more unused windowTitle properties 2013-11-29 11:02:15 -08:00
renumber.ui Make some dialogs modal to MainWindow 2014-03-12 10:14:17 -07:00
shiftimagetimes.ui Make some dialogs modal to MainWindow 2014-03-12 10:14:17 -07:00
shifttimes.ui Add current time and adjusted time to gui when adjusting dive's timestamp 2014-03-21 21:26:09 -07:00
simplewidgets.cpp Add current time and adjusted time to gui when adjusting dive's timestamp 2014-03-21 21:26:09 -07:00
simplewidgets.h simplewidgets: Include stdint for cross compatability 2014-03-25 11:19:56 -07:00
starwidget.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
starwidget.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
subsurfacewebservices.cpp Convert other users of showError() to the new world order 2014-03-14 12:36:06 -07:00
subsurfacewebservices.h Convert other users of showError() to the new world order 2014-03-14 12:36:06 -07:00
tableview.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
tableview.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
tableview.ui Remove more unused windowTitle properties 2013-11-29 11:02:15 -08:00
tagwidget.cpp Divemaster and Buddy fields auto-completion are not saved 2014-03-23 17:20:03 -07:00
tagwidget.h Do not copy strings when you don't need it. 2014-03-20 09:47:57 -07:00
usermanual.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
usermanual.h Remove usermanual when building for Android 2014-03-27 10:41:52 -07:00
usermanual.ui Close search panel by button click 2014-02-10 07:12:35 -08:00
webservices.ui Improve the download from Subsurface webservice dialog 2014-01-15 15:33:04 +07:00