diff --git a/sleepyhead/daily.cpp b/sleepyhead/daily.cpp index cb773774..3143ebb2 100644 --- a/sleepyhead/daily.cpp +++ b/sleepyhead/daily.cpp @@ -66,13 +66,15 @@ Daily::Daily(QWidget *parent,gGraphView * shared) layout->setMargin(0); layout->setContentsMargins(0,0,0,0); + dateDisplay=new QLabel("",this); + dateDisplay->setAlignment(Qt::AlignCenter); + dateDisplay->setTextFormat(Qt::RichText); + ui->sessionBarLayout->addWidget(dateDisplay,1); + // const bool sessbar_under_graphs=false; // if (sessbar_under_graphs) { // ui->sessionBarLayout->addWidget(sessbar,1); // } else { -// QLabel *label=new QLabel("The session bar could go here instead??",this); -// label->setAlignment(Qt::AlignCenter); -// ui->sessionBarLayout->addWidget(label,1); // ui->splitter->insertWidget(2,sessbar); // sessbar->setMaximumHeight(sessbar->height()); // sessbar->setMinimumHeight(sessbar->height()); @@ -728,6 +730,7 @@ MyWebView::MyWebView(QWidget *parent): void Daily::Load(QDate date) { + dateDisplay->setText(""+date.toString(Qt::SystemLocaleLongDate)+""); static Day * lastcpapday=NULL; previous_date=date; Day *cpap=PROFILE.GetDay(date,MT_CPAP); diff --git a/sleepyhead/daily.h b/sleepyhead/daily.h index d033a226..e4977b99 100644 --- a/sleepyhead/daily.h +++ b/sleepyhead/daily.h @@ -320,6 +320,7 @@ private: QIcon * icon_off; SessionBar * sessbar; + QLabel * dateDisplay; MyWebView * webView; diff --git a/sleepyhead/daily.ui b/sleepyhead/daily.ui index 43d67af9..4b8bd7a4 100644 --- a/sleepyhead/daily.ui +++ b/sleepyhead/daily.ui @@ -753,7 +753,7 @@ QFrame::StyledPanel - QFrame::Raised + QFrame::Sunken