From 69b676aa64c324cc24b5530074d0ec169762935b Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Sun, 10 Aug 2014 03:34:00 +1000 Subject: [PATCH] Disabling that crud for now.. --- sleepyhead/Graphs/gGraph.cpp | 3 +-- sleepyhead/daily.cpp | 11 +++++------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/sleepyhead/Graphs/gGraph.cpp b/sleepyhead/Graphs/gGraph.cpp index 7f2ce564..a6081a55 100644 --- a/sleepyhead/Graphs/gGraph.cpp +++ b/sleepyhead/Graphs/gGraph.cpp @@ -655,8 +655,7 @@ void gGraph::roundY(EventDataType &miny, EventDataType &maxy) //if (m_enforceMaxY) { maxy=f_maxy; } } -void gGraph::AddLayer(Layer *l, LayerPosition position, short width, short height, short order, - bool movable, short x, short y) +void gGraph::AddLayer(Layer *l, LayerPosition position, short width, short height, short order, bool movable, short x, short y) { l->setLayout(position, width, height, order); l->setMovable(movable); diff --git a/sleepyhead/daily.cpp b/sleepyhead/daily.cpp index e2d4946b..b3f22233 100644 --- a/sleepyhead/daily.cpp +++ b/sleepyhead/daily.cpp @@ -141,7 +141,7 @@ Daily::Daily(QWidget *parent,gGraphView * shared) layout->addWidget(GraphView,1); layout->addWidget(scrollbar,0); - int default_height=p_profile->appearance->graphHeight(); + int default_height = p_profile->appearance->graphHeight(); gGraph *GAHI = nullptr, // *TAP = nullptr, @@ -150,11 +150,10 @@ Daily::Daily(QWidget *parent,gGraphView * shared) const QString STR_GRAPH_DailySummary = "DailySummary"; - gGraph * SG; - graphlist[STR_GRAPH_DailySummary] = SG =new gGraph(STR_GRAPH_DailySummary, GraphView, QObject::tr("Summary"), QObject::tr("Summary of this daily information"), default_height); - // SG->AddLayer(new gFlagsLabelArea(nullptr),LayerLeft,gYAxis::Margin); - SG->AddLayer(AddCPAP(new gDailySummary())); - +// gGraph * SG; +// graphlist[STR_GRAPH_DailySummary] = SG = new gGraph(STR_GRAPH_DailySummary, GraphView, QObject::tr("Summary"), QObject::tr("Summary of this daily information"), default_height); +// SG->AddLayer(new gFlagsLabelArea(nullptr),LayerLeft,gYAxis::Margin); +// SG->AddLayer(AddCPAP(new gDailySummary())); graphlist[STR_GRAPH_SleepFlags] = SF = new gGraph(STR_GRAPH_SleepFlags, GraphView, STR_TR_EventFlags, STR_TR_EventFlags, default_height); SF->setPinned(true);