This patch reverts ae709ab30e

things like:

potentially, for every item interested in 'printMode'
can clutter the profile-widget stack a lot.

instead the items should be aware of the profile widget
instance and not MainWindow.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Lubomir I. Ivanov 2015-11-06 13:54:36 +02:00 committed by Dirk Hohndel
parent 6d7eefd52d
commit 61e768036e

View file

@ -4,13 +4,8 @@
#include "preferences/preferencesdialog.h" #include "preferences/preferencesdialog.h"
#include "diveplotdatamodel.h" #include "diveplotdatamodel.h"
#include "animationfunctions.h" #include "animationfunctions.h"
#ifndef SUBSURFACE_MOBILE
#include "mainwindow.h"
#endif
#include "divelineitem.h" #include "divelineitem.h"
#include "profilewidget2.h" #include "profilewidget2.h"
#include <QDebug>
#include <QGraphicsWidget>
QPen DiveCartesianAxis::gridPen() QPen DiveCartesianAxis::gridPen()
{ {
@ -149,11 +144,7 @@ void emptyList(QList<T *> &list, double steps)
void DiveCartesianAxis::updateTicks(color_indice_t color) void DiveCartesianAxis::updateTicks(color_indice_t color)
{ {
#ifndef SUBSURFACE_MOBILE
if (!scene() || (!changed && !profileWidget->getPrintMode())) if (!scene() || (!changed && !profileWidget->getPrintMode()))
#else
if (!scene() || !changed)
#endif
return; return;
QLineF m = line(); QLineF m = line();
// unused so far: // unused so far: