UI Nits: Introducing GcWindow property Daterange

To allow charts to have a property set for the date range
to plot a new property is added. This will work in the same
manner as the "ride" property.

No functional enhancement.
This commit is contained in:
Mark Liversedge
2012-11-13 08:19:03 +00:00
parent c689a90f54
commit a3a49d8a3d
4 changed files with 57 additions and 3 deletions

View File

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