From 61e768036e63d4006fc5b46b687ecf9fd1150f21 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Fri, 6 Nov 2015 13:54:36 +0200 Subject: 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 Signed-off-by: Dirk Hohndel --- profile-widget/divecartesianaxis.cpp | 9 --------- 1 file changed, 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 -#include QPen DiveCartesianAxis::gridPen() { @@ -149,11 +144,7 @@ void emptyList(QList &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: -- cgit v1.2.3-70-g09d2