[PATCH 2/2] This patch reverts ae709ab30ee6ab
Lubomir I. Ivanov
neolit123 at gmail.com
Fri Nov 6 03:54:36 PST 2015
From: "Lubomir I. Ivanov" <neolit123 at gmail.com>
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 at gmail.com>
---
profile-widget/divecartesianaxis.cpp | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/profile-widget/divecartesianaxis.cpp b/profile-widget/divecartesianaxis.cpp
index 4a7b029..3941911 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:
--
1.7.11.msysgit.0
More information about the subsurface
mailing list