subsurface/profile-widget
Berthold Stoeger 01983c65c3 profile: pass fontPrintScale at construction time
Instead of intializing the text fields and then changing the
font scale via signal-rigmarole, pass down the font-scale
at construction time.

Since the fontPrintScale is only set in print mode, we also
can access it directly instead of testing for printMode.

Since the DiveTextItem is not updated using signals anymore,
the connected flag can be removed.

The commit is larger than I had hoped for, but this makes
things ultimately less brittle.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2021-12-17 11:54:23 -08:00
..
animationfunctions.cpp Profile: add speed parameter to Animation::* functions 2019-07-12 09:59:28 +02:00
animationfunctions.h Profile: add speed parameter to Animation::* functions 2019-07-12 09:59:28 +02:00
CMakeLists.txt profile: move DiveHandler to profile-widget folder 2020-12-12 15:52:40 -08:00
divecartesianaxis.cpp profile: pass fontPrintScale at construction time 2021-12-17 11:54:23 -08:00
divecartesianaxis.h profile: pass fontPrintScale at construction time 2021-12-17 11:54:23 -08:00
diveeventitem.cpp cleanup: replace membuffer by qasprintf_loc() 2021-07-23 11:22:43 -07:00
diveeventitem.h profile: scale dive event items according to font print scale 2021-07-04 11:51:17 -07:00
divehandler.cpp profile use unique_ptr to manage dive handler objects 2021-04-02 13:53:23 -07:00
divehandler.h profile: pass dive to DiveHandler 2021-01-10 15:57:39 -08:00
divelineitem.cpp Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
divelineitem.h Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
divepixmapitem.cpp profile: move picture removal from DivePictureItem to ProfileWidget2 2020-12-19 20:19:51 +01:00
divepixmapitem.h profile: move picture removal from DivePictureItem to ProfileWidget2 2020-12-19 20:19:51 +01:00
diveprofileitem.cpp profile: pass fontPrintScale at construction time 2021-12-17 11:54:23 -08:00
diveprofileitem.h profile: pass fontPrintScale at construction time 2021-12-17 11:54:23 -08:00
diverectitem.cpp Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
diverectitem.h Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
divetextitem.cpp profile: pass fontPrintScale at construction time 2021-12-17 11:54:23 -08:00
divetextitem.h profile: pass fontPrintScale at construction time 2021-12-17 11:54:23 -08:00
divetooltipitem.cpp cleanup: replace membuffer by membufferpp in C-code 2021-07-23 11:22:43 -07:00
divetooltipitem.h cleanup: remove function static variables 2021-07-20 09:27:35 -07:00
profilewidget2.cpp profile: pass fontPrintScale at construction time 2021-12-17 11:54:23 -08:00
profilewidget2.h profile: pass printFontScale on creation of the profile 2021-12-17 11:54:23 -08:00
qmlprofile.cpp profile: pass printFontScale on creation of the profile 2021-12-17 11:54:23 -08:00
qmlprofile.h profile: move creation of mobile profile-widget into function 2021-12-17 11:54:23 -08:00
ruleritem.cpp profile: pass dive to RulerItem 2021-01-10 15:57:39 -08:00
ruleritem.h profile: pass dive to RulerItem 2021-01-10 15:57:39 -08:00
tankitem.cpp profile: pass fontPrintScale at construction time 2021-12-17 11:54:23 -08:00
tankitem.h profile: pass fontPrintScale at construction time 2021-12-17 11:54:23 -08:00