mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-15 17:09:56 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user