mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
5b302235f4
When exporting dives we show a message. The message is closed when the export is finished. This is coordinated by a QFuture. Instead of keeping a global QFuture in the export-code, pass it around as a local variable. This is supported according to Qt's documentation: "QFuture is a lightweight reference counted class that can be passed by value." and the source code indicates the same. Not only does this remove a global, it also makes the code more flexible: Now we could show one notification per export, for example. 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".