mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
6622f42aab
When the show_unused_cylinders flag is not set, the cylinder tables in the equipment tab and the planner should not show unused cylinders. However, the code in CylindersModel is fundamentally broken if the unused cylinders are not at the end of the list: The correct number of cylinders is shown, but not the correct cylinders. Therefore, add a higher-level CylindersModelFiltered model on top of CylindersModel that does the actual filtering. Some calls are routed through to the base model (notably those that take indexes, as these have to be mapped), for some calls the caller has to get access to the source model first. We might want to adjust this. For filtering, reuse the already existing show_cylinder function and export it via CylindersModel. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
exportfuncs.cpp | ||
exportfuncs.h | ||
plannershared.cpp | ||
plannershared.h | ||
README |
This directory contains shared UI backend code shared between the desktop version and the mobile version. The backend code sits between the actual functionality, which are implemented in core and qt-models, and the UI/QML which are implemented in desktop-widgets and mobile-widgets. The idea of backend is not to duplicate code, and at the same time limit the UI and QML to only deal with real GUI. The first implementations for backend are "export" and "diveplanner".