mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
6d7eefd52d
commit
61e768036e
1 changed files with 0 additions and 9 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue