aboutsummaryrefslogtreecommitdiffstats
path: root/profile-widget/divecartesianaxis.cpp
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-11-06 13:54:36 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-06 09:58:17 -0800
commit61e768036e63d4006fc5b46b687ecf9fd1150f21 (patch)
tree017134ae02e732afdd9ac9ec93a0b95676565de1 /profile-widget/divecartesianaxis.cpp
parent6d7eefd52da50fb76a1f817a871ef21b77af20dc (diff)
downloadsubsurface-61e768036e63d4006fc5b46b687ecf9fd1150f21.tar.gz
This patch reverts ae709ab30ee6ab
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>
Diffstat (limited to 'profile-widget/divecartesianaxis.cpp')
-rw-r--r--profile-widget/divecartesianaxis.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/profile-widget/divecartesianaxis.cpp b/profile-widget/divecartesianaxis.cpp
index 4a7b029ad..3941911de 100644
--- a/profile-widget/divecartesianaxis.cpp
+++ b/profile-widget/divecartesianaxis.cpp
@@ -4,13 +4,8 @@
#include "preferences/preferencesdialog.h"
#include "diveplotdatamodel.h"
#include "animationfunctions.h"
-#ifndef SUBSURFACE_MOBILE
-#include "mainwindow.h"
-#endif
#include "divelineitem.h"
#include "profilewidget2.h"
-#include <QDebug>
-#include <QGraphicsWidget>
QPen DiveCartesianAxis::gridPen()
{
@@ -149,11 +144,7 @@ void emptyList(QList<T *> &list, double steps)
void DiveCartesianAxis::updateTicks(color_indice_t color)
{
-#ifndef SUBSURFACE_MOBILE
if (!scene() || (!changed && !profileWidget->getPrintMode()))
-#else
- if (!scene() || !changed)
-#endif
return;
QLineF m = line();
// unused so far: