mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
The tank-info-delegate cast its model to CylindersModelFiltered, since this is what the equipment-tab uses since implementing the filtering of unused cylinders. However, the planner users the same delegate and still uses the unfiltered CylindersModel. This means that the (dynamic) cast returns a null pointer and crashes. One possibility would be to derive CylindersModelFiltered and CylindersModel from the same class that defines virtual functions and cast to that class. This is a different attempt: don't cast (i.e. stay with a QAbstractItemModel and play it via Qt's model-view system. Firstly, replace the passInData function by a role to setData(). Secondly, read the working-pressure and size via new columns using data(). Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at> |
||
|---|---|---|
| .. | ||
| css | ||
| preferences | ||
| statistics | ||
| tab-widgets | ||
| about.cpp | ||
| about.h | ||
| about.ui | ||
| btdeviceselectiondialog.cpp | ||
| btdeviceselectiondialog.h | ||
| btdeviceselectiondialog.ui | ||
| CMakeLists.txt | ||
| 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 | ||
| diveplanner.h | ||
| diveplanner.ui | ||
| diveshareexportdialog.cpp | ||
| diveshareexportdialog.h | ||
| diveshareexportdialog.ui | ||
| divesiteimportdialog.cpp | ||
| divesiteimportdialog.h | ||
| divesiteimportdialog.ui | ||
| downloadfromdivecomputer.cpp | ||
| downloadfromdivecomputer.h | ||
| downloadfromdivecomputer.ui | ||
| filterwidget2.cpp | ||
| filterwidget2.h | ||
| filterwidget2.ui | ||
| findmovedimagesdialog.cpp | ||
| findmovedimagesdialog.h | ||
| findmovedimagesdialog.ui | ||
| groupedlineedit.cpp | ||
| groupedlineedit.h | ||
| importgps.cpp | ||
| importgps.h | ||
| importgps.ui | ||
| kmessagewidget.cpp | ||
| kmessagewidget.h | ||
| listfilter.ui | ||
| locationinformation.cpp | ||
| locationinformation.h | ||
| locationinformation.ui | ||
| mainwindow.cpp | ||
| mainwindow.h | ||
| mainwindow.ui | ||
| mapwidget.cpp | ||
| mapwidget.h | ||
| modeldelegates.cpp | ||
| modeldelegates.h | ||
| notificationwidget.cpp | ||
| notificationwidget.h | ||
| plannerDetails.ui | ||
| plannerSettings.ui | ||
| printdialog.cpp | ||
| 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 | ||
| 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 | ||
| textedit.cpp | ||
| textedit.h | ||
| updatemanager.cpp | ||
| updatemanager.h | ||
| urldialog.ui | ||
| usermanual.cpp | ||
| usermanual.h | ||
| usersurvey.cpp | ||
| usersurvey.h | ||
| usersurvey.ui | ||
| webservices.ui | ||