mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: remove DiveProfileItem::settingsToggled
This was used to force a replot on preferences changes. However, the profile now does a replot in such a case by itself. This can be removed. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
0392994df0
commit
45ee3544d1
2 changed files with 0 additions and 8 deletions
|
@ -55,13 +55,6 @@ DiveProfileItem::DiveProfileItem(const DivePlotDataModel &model, const DiveCarte
|
|||
AbstractProfilePolygonItem(model, hAxis, hColumn, vAxis, vColumn),
|
||||
show_reported_ceiling(0), reported_ceiling_in_red(0)
|
||||
{
|
||||
connect(qPrefTechnicalDetails::instance(), &qPrefTechnicalDetails::dcceilingChanged, this, &DiveProfileItem::settingsToggled);
|
||||
connect(qPrefTechnicalDetails::instance(), &qPrefTechnicalDetails::redceilingChanged, this, &DiveProfileItem::settingsToggled);
|
||||
}
|
||||
|
||||
void DiveProfileItem::settingsToggled(bool)
|
||||
{
|
||||
replot();
|
||||
}
|
||||
|
||||
void DiveProfileItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
|
||||
|
|
|
@ -68,7 +68,6 @@ public:
|
|||
DiveProfileItem(const DivePlotDataModel &model, const DiveCartesianAxis &hAxis, int hColumn, const DiveCartesianAxis &vAxis, int vColumn);
|
||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0) override;
|
||||
void replot() override;
|
||||
void settingsToggled(bool toggled);
|
||||
void plot_depth_sample(struct plot_data *entry, QFlags<Qt::AlignmentFlag> flags, const QColor &color);
|
||||
int maxCeiling(int row);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue