subsurface/profile-widget
Lubomir I. Ivanov 8e7be1b50a Untangle DiveCalculatedCeiling from MainWindow
DiveCalculatedCeiling is the last class the references
MainWindow in the profile-widget stack.

In modelDataChanged() it looks for the information()
widget and sets a slot for the dateTimeChanged() signal that
information() emits.

To solve the issue we make DiveCalculatedCeiling recieve
a ProfileWidget2 reference and make ProfileWidget2 emit
the dateTimeChangedItems() signal.

ProfileWidget2 itself listens for the dateTimeChanged()
signal that information() emits and emits dateTimeChangedItems()
to notify any possible children/item listeners in the
ProfileWidget2::dateTimeChanged() slot.

The connection between ProfileWidget2 and information()
is set in MainWindow. This makes DiveCalculatedCeiling
unaware of MainWindow and which class originally emits
the dateTimeChanged() signal to ProfileWidget2.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
--
Think delegation.

Tomaz, please take a look at this one, to double check
if i messed up.

also i have zero idea how the mobile app is setting these
connections, if it does so even.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-11-06 09:58:34 -08:00
..
animationfunctions.cpp
animationfunctions.h
CMakeLists.txt Profile: add define when building subsurface-mobile 2015-11-05 16:05:19 -08:00
divecartesianaxis.cpp This patch reverts ae709ab30e 2015-11-06 09:58:17 -08:00
divecartesianaxis.h Untagle DiveCartesianAxis from MainWindow 2015-11-06 09:58:08 -08:00
diveeventitem.cpp
diveeventitem.h
divelineitem.cpp
divelineitem.h
divepixmapitem.cpp
divepixmapitem.h
diveprofileitem.cpp Untangle DiveCalculatedCeiling from MainWindow 2015-11-06 09:58:34 -08:00
diveprofileitem.h Untangle DiveCalculatedCeiling from MainWindow 2015-11-06 09:58:34 -08:00
diverectitem.cpp
diverectitem.h
divetextitem.cpp Profile: include Qt headers directly 2015-11-05 17:05:30 -08:00
divetextitem.h
divetooltipitem.cpp
divetooltipitem.h
profilewidget2.cpp Untangle DiveCalculatedCeiling from MainWindow 2015-11-06 09:58:34 -08:00
profilewidget2.h Untangle DiveCalculatedCeiling from MainWindow 2015-11-06 09:58:34 -08:00
ruleritem.cpp
ruleritem.h
tankitem.cpp
tankitem.h