subsurface/desktop-widgets
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
..
css
marble
plugins Make the skeleton Facebook plugin and make sure it is loaded 2015-10-30 10:36:52 -07:00
preferences Re-add the signal connections 2015-11-04 17:24:31 -08:00
statistics
about.cpp
about.h
about.ui
btdeviceselectiondialog.cpp
btdeviceselectiondialog.h
btdeviceselectiondialog.ui
CMakeLists.txt Use target_link_libraries for Grantlee 2015-11-05 13:45:50 -08:00
configuredivecomputerdialog.cpp
configuredivecomputerdialog.h
configuredivecomputerdialog.ui
divecomponentselection.ui
divecomputermanagementdialog.cpp
divecomputermanagementdialog.h
divecomputermanagementdialog.ui
divelistview.cpp
divelistview.h
divelogexportdialog.cpp
divelogexportdialog.h
divelogexportdialog.ui
divelogimportdialog.cpp
divelogimportdialog.h
divelogimportdialog.ui
divepicturewidget.cpp
divepicturewidget.h
diveplanner.cpp Create date and time formats preferences 2015-11-02 12:51:31 -08:00
diveplanner.h
diveplanner.ui
diveshareexportdialog.cpp
diveshareexportdialog.h
diveshareexportdialog.ui
downloadfromdivecomputer.cpp
downloadfromdivecomputer.h
downloadfromdivecomputer.ui
filterwidget.ui
globe.cpp
globe.h
groupedlineedit.cpp
groupedlineedit.h
kmessagewidget.cpp
kmessagewidget.h
listfilter.ui
locationinformation.cpp
locationinformation.h
locationInformation.ui
maintab.cpp Context menu for images: add loading from file / web 2015-11-03 08:31:41 -08:00
maintab.h Context menu for images: add loading from file / web 2015-11-03 08:31:41 -08:00
maintab.ui
mainwindow.cpp Untangle DiveCalculatedCeiling from MainWindow 2015-11-06 09:58:34 -08:00
mainwindow.h Untangle Profile from MainWindow: shortcuts 2015-11-05 13:45:50 -08:00
mainwindow.ui Fix warnings 2015-10-30 10:36:51 -07:00
modeldelegates.cpp
modeldelegates.h
notificationwidget.cpp
notificationwidget.h
plannerDetails.ui
plannerSettings.ui
preferences.cpp Fix warnings 2015-10-30 10:36:51 -07:00
preferences.ui Preferences: move network preferences to the new dialog 2015-10-30 10:36:51 -07:00
printdialog.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
printdialog.h
printer.cpp
printer.h
printoptions.cpp
printoptions.h
printoptions.ui
qtwaitingspinner.cpp
qtwaitingspinner.h
renumber.ui
searchbar.ui
setpoint.ui
shiftimagetimes.ui
shifttimes.ui
simplewidgets.cpp
simplewidgets.h
socialnetworks.cpp
socialnetworks.h
socialnetworksdialog.ui
starwidget.cpp
starwidget.h
subsurfacewebservices.cpp
subsurfacewebservices.h
tableview.cpp
tableview.h
tableview.ui
tagwidget.cpp
tagwidget.h
templateedit.cpp
templateedit.h
templateedit.ui
templatelayout.cpp
templatelayout.h
undocommands.cpp
undocommands.h
updatemanager.cpp
updatemanager.h
urldialog.ui
usermanual.cpp
usermanual.h
usersurvey.cpp
usersurvey.h
usersurvey.ui
webservices.ui