From 899b38737af689019d74252f16d66778f51d3b81 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Sat, 24 Sep 2011 01:34:54 +1000 Subject: [PATCH] Spelling fixes, SummaryChart day counts, misc crud --- Graphs/gSummaryChart.cpp | 8 +++++--- docs/channels.xml | 5 +++-- mainwindow.cpp | 2 +- preferencesdialog.cpp | 2 +- preferencesdialog.ui | 4 ++-- 5 files changed, 12 insertions(+), 9 deletions(-) diff --git a/Graphs/gSummaryChart.cpp b/Graphs/gSummaryChart.cpp index 7b698ed0..15249cf8 100644 --- a/Graphs/gSummaryChart.cpp +++ b/Graphs/gSummaryChart.cpp @@ -281,13 +281,15 @@ void SummaryChart::paint(gGraph & w,int left, int top, int width, int height) //if (!tmp) continue; if (m_type[j]==ST_MAX) { if (tmp>totalvalues[j]) totalvalues[j]=tmp; + totalcounts[j]=1; } else if (m_type[j]==ST_MIN) { if (tmp - + @@ -53,7 +53,7 @@ One id code per item - + @@ -76,6 +76,7 @@ One id code per item + diff --git a/mainwindow.cpp b/mainwindow.cpp index 8f1fdca2..bf9787d5 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -410,7 +410,7 @@ void MainWindow::replyFinished(QNetworkReply * reply) QMessageBox::information(this,"Laziness Warning","I'd love to do it for you automatically, but it's not implemented yet.. :)",QMessageBox::Ok); } } else { - QMessageBox::information(this,"SleepyHead v"+a,"Your already up to date!",QMessageBox::Ok); + QMessageBox::information(this,"SleepyHead v"+a,"You're already up to date!",QMessageBox::Ok); } } } else { diff --git a/preferencesdialog.cpp b/preferencesdialog.cpp index ad34d7eb..e04e1b8a 100644 --- a/preferencesdialog.cpp +++ b/preferencesdialog.cpp @@ -87,7 +87,6 @@ PreferencesDialog::PreferencesDialog(QWidget *parent,Profile * _profile) : ui->eventTable->setCellWidget(row,0,c); ui->eventTable->setCellWidget(row,1,pb); - QColor a=ci.value()->defaultColor();//(rand() % 255, rand() % 255, rand() % 255, 255); QPalette p(a,a,a,a,a,a,a); @@ -97,6 +96,7 @@ PreferencesDialog::PreferencesDialog(QWidget *parent,Profile * _profile) : row++; } } + ui->eventTable->sortByColumn(2,Qt::AscendingOrder); QLocale locale=QLocale::system(); QString shortformat=locale.dateFormat(QLocale::ShortFormat); if (!shortformat.toLower().contains("yyyy")) { diff --git a/preferencesdialog.ui b/preferencesdialog.ui index 7f959c72..ed4da57d 100644 --- a/preferencesdialog.ui +++ b/preferencesdialog.ui @@ -29,7 +29,7 @@ - 3 + 1 @@ -348,7 +348,7 @@ - Turn this off if your worried about SleepyHead consuming too much memory. + Turn this off if you are worried about SleepyHead consuming too much memory. It will be faster changing to days you've already been to if you leave it on.