UI Nits: Daily/Weekly/Monthly Summary

You can now add the summary chart to the diary
view to get a summary of the date range currently
being summarised on that view.

Once the Home view has its own sidebar that selects
date ranges you will be able to add it there too
and summarise seasons etc.
This commit is contained in:
Mark Liversedge
2012-11-13 13:27:36 +00:00
parent a3a49d8a3d
commit d22777ed74
19 changed files with 355 additions and 209 deletions

View File

@@ -97,22 +97,25 @@ QDateTime convertToLocalTime(QString timestamp)
}
}
DateRange::DateRange(QDate from, QDate to) : QObject()
DateRange::DateRange(QDate from, QDate to, QString name) : QObject()
{
this->from=from;
this->to=to;
this->name=name;
}
DateRange::DateRange(const DateRange &other) : QObject()
{
from=other.from;
to=other.to;
name=other.name;
}
DateRange& DateRange::operator=(const DateRange &other)
{
from=other.from;
to=other.to;
name=other.name;
emit changed(from, to);
return *this;