From 04ce908e8ed6239b8f143b3892da0dcdaa6e8262 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Wed, 26 Feb 2020 22:32:04 +0100 Subject: CylindersModel: listen and react to signals React to signals from the undo-commands and update the model accordingly. Signed-off-by: Berthold Stoeger --- qt-models/cylindermodel.cpp | 31 +++++++++++++++++++++++++++++++ qt-models/cylindermodel.h | 3 +++ 2 files changed, 34 insertions(+) (limited to 'qt-models') diff --git a/qt-models/cylindermodel.cpp b/qt-models/cylindermodel.cpp index 7864da76c..8938bfbff 100644 --- a/qt-models/cylindermodel.cpp +++ b/qt-models/cylindermodel.cpp @@ -19,6 +19,9 @@ CylindersModel::CylindersModel(QObject *parent) : CleanerTableModel(parent), << tr("Deco switch at") < &dives); + void cylinderAdded(dive *d, int pos); + void cylinderRemoved(dive *d, int pos); + void cylinderEdited(dive *d, int pos); private: dive *d; -- cgit v1.2.3-70-g09d2