From 54af28ae61e6d48a5a9f79ae1df35f9d883cf395 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Thu, 28 Jul 2011 23:56:45 +1000 Subject: [PATCH] Re-enable Pie Charts --- daily.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/daily.cpp b/daily.cpp index ef61334d..e91391a9 100644 --- a/daily.cpp +++ b/daily.cpp @@ -45,7 +45,7 @@ Daily::Daily(QWidget *parent,QGLWidget * shared) : gSplitter=new QSplitter(Qt::Vertical,ui->scrollArea); gSplitter->setStyleSheet("QSplitter::handle { background-color: 'light grey'; }"); - gSplitter->setHandleWidth(2); + gSplitter->setHandleWidth(3); ui->scrollArea->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn); ui->scrollArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); ui->scrollArea->setWidget(gSplitter); @@ -213,16 +213,13 @@ Daily::Daily(QWidget *parent,QGLWidget * shared) : G_AHI->SetMargins(0,0,0,0); - //AddCPAPData(g_ahi=new AHIData()); - //gCandleStick *l=new gCandleStick(g_ahi); gPieChart *l=new gPieChart(Qt::black); l->AddSlice(CPAP_Hypopnea,QColor(0x40,0x40,0xff,0xff),"H"); l->AddSlice(CPAP_Obstructive,QColor(0x40,0xaf,0xbf,0xff),"OA"); l->AddSlice(CPAP_ClearAirway,QColor(0xb2,0x54,0xcd,0xff),"CA"); l->AddSlice(CPAP_RERA,QColor(0xff,0xff,0x80,0xff),"RE"); l->AddSlice(CPAP_FlowLimit,QColor(0x40,0x40,0x40,0xff),"FL"); - //l->color.push_back(QColor(0x60,0xff,0x60,0xff)); // green - //G_AHI->AddLayer(AddCPAP(l)); + G_AHI->AddLayer(AddCPAP(l)); G_AHI->SetGradientBackground(false); //G_AHI->setMaximumSize(2000,30); @@ -573,8 +570,7 @@ void Daily::Load(QDate date) ""; } html+="\n"+tr("Event Breakdown")+"\n"; - if (0) { - + if (1) { // AHI Pie Chart G_AHI->setFixedSize(gwwidth,gwheight); QPixmap pixmap=G_AHI->renderPixmap(120,120,false); //gwwidth,gwheight,false); QByteArray byteArray;