Redo marker selection code

This commit is contained in:
Thomas Wilshaw
2021-10-22 22:15:51 +01:00
parent 853dbc0066
commit d8101869b9
7 changed files with 76 additions and 30 deletions
+12
View File
@@ -66,6 +66,18 @@ void TimelineMarker::set_color(int c)
emit ColorChanged(color_);
}
bool TimelineMarker::active()
{
return active_;
}
void TimelineMarker::set_active(bool active)
{
active_ = active;
emit ActiveChanged(active_);
}
void TimelineMarkerList::Save(QXmlStreamWriter *writer) const
{
foreach (TimelineMarker* marker, markers_) {
+7
View File
@@ -44,6 +44,9 @@ public:
int color();
void set_color(int c);
bool active();
void set_active(bool active);
signals:
void TimeChanged(const TimeRange& time);
@@ -51,6 +54,8 @@ signals:
void ColorChanged(int c);
void ActiveChanged(bool active);
private:
TimeRange time_;
@@ -58,6 +63,8 @@ private:
int color_;
bool active_;
};
class TimelineMarkerList : public QObject