mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
backendShared: remove length slot
Length variables are updated from the QML and desktop directly. Signed-off-by: jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b0e46c208d
commit
663fe7f78b
2 changed files with 1 additions and 14 deletions
|
@ -11,11 +11,6 @@ plannerShared *plannerShared::instance()
|
||||||
static plannerShared *self = new plannerShared;
|
static plannerShared *self = new plannerShared;
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
plannerShared::plannerShared()
|
|
||||||
{
|
|
||||||
// Be informed when user switches METER <-> FEET
|
|
||||||
connect(qPrefUnits::instance(), &qPrefUnits::lengthChanged, this, &unit_lengthChangedSlot);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Planning values
|
// Planning values
|
||||||
deco_mode plannerShared::planner_deco_mode()
|
deco_mode plannerShared::planner_deco_mode()
|
||||||
|
@ -213,8 +208,3 @@ void plannerShared::set_bestmixend(int value)
|
||||||
qPrefDivePlanner::set_bestmixend(units_to_depth(value).mm);
|
qPrefDivePlanner::set_bestmixend(units_to_depth(value).mm);
|
||||||
CylindersModel::instance()->updateBestMixes();
|
CylindersModel::instance()->updateBestMixes();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle when user changes length measurement type
|
|
||||||
void plannerShared::unit_lengthChangedSlot(int value)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
|
@ -117,11 +117,8 @@ signals:
|
||||||
void decopo2Changed(double value);
|
void decopo2Changed(double value);
|
||||||
void bestmixendChanged(int value);
|
void bestmixendChanged(int value);
|
||||||
|
|
||||||
private slots:
|
|
||||||
static void unit_lengthChangedSlot(int value);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
plannerShared();
|
plannerShared() {}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // PLANNERSHARED_H
|
#endif // PLANNERSHARED_H
|
||||||
|
|
Loading…
Reference in a new issue