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 Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
marble Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
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 Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
about.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
about.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
about.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
btdeviceselectiondialog.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
btdeviceselectiondialog.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
btdeviceselectiondialog.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
CMakeLists.txt Use target_link_libraries for Grantlee 2015-11-05 13:45:50 -08:00
configuredivecomputerdialog.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
configuredivecomputerdialog.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
configuredivecomputerdialog.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
divecomponentselection.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
divecomputermanagementdialog.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
divecomputermanagementdialog.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
divecomputermanagementdialog.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
divelistview.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
divelistview.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
divelogexportdialog.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
divelogexportdialog.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
divelogexportdialog.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
divelogimportdialog.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
divelogimportdialog.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
divelogimportdialog.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
divepicturewidget.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
divepicturewidget.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
diveplanner.cpp Create date and time formats preferences 2015-11-02 12:51:31 -08:00
diveplanner.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
diveplanner.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
diveshareexportdialog.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
diveshareexportdialog.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
diveshareexportdialog.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
downloadfromdivecomputer.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
downloadfromdivecomputer.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
downloadfromdivecomputer.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
filterwidget.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
globe.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
globe.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
groupedlineedit.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
groupedlineedit.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
kmessagewidget.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
kmessagewidget.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
listfilter.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
locationinformation.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
locationinformation.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
locationInformation.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
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 Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
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 Move Profile widget out of desktop-widgets 2015-10-30 10:36:49 -07:00
modeldelegates.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
notificationwidget.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
notificationwidget.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
plannerDetails.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
plannerSettings.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
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 Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
printer.cpp Move Profile widget out of desktop-widgets 2015-10-30 10:36:49 -07:00
printer.h Move Profile widget out of desktop-widgets 2015-10-30 10:36:49 -07:00
printoptions.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
printoptions.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
printoptions.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
qtwaitingspinner.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
qtwaitingspinner.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
renumber.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
searchbar.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
setpoint.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
shiftimagetimes.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
shifttimes.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
simplewidgets.cpp Move Profile widget out of desktop-widgets 2015-10-30 10:36:49 -07:00
simplewidgets.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
socialnetworks.cpp Move Profile widget out of desktop-widgets 2015-10-30 10:36:49 -07:00
socialnetworks.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
socialnetworksdialog.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
starwidget.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
starwidget.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
subsurfacewebservices.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
subsurfacewebservices.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
tableview.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
tableview.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
tableview.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
tagwidget.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
tagwidget.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
templateedit.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
templateedit.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
templateedit.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
templatelayout.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
templatelayout.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
undocommands.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
undocommands.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
updatemanager.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
updatemanager.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
urldialog.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
usermanual.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
usermanual.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
usersurvey.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
usersurvey.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
usersurvey.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
webservices.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00