comparison base/Event.h @ 1620:2f9deb8d3295 single-point

Add this method back again; it is useful
author Chris Cannam
date Fri, 08 Mar 2019 13:36:53 +0000
parents 24dc8cb42755
children 676e32fa403e
comparison
equal deleted inserted replaced
1618:ba3ddb7fe2bd 1620:2f9deb8d3295
110 Event withoutDuration() const { 110 Event withoutDuration() const {
111 Event p(*this); 111 Event p(*this);
112 p.m_duration = 0; 112 p.m_duration = 0;
113 return p; 113 return p;
114 } 114 }
115 115
116 bool hasLabel() const { return m_label != QString(); }
116 QString getLabel() const { return m_label; } 117 QString getLabel() const { return m_label; }
117 118
118 Event withLabel(QString label) const { 119 Event withLabel(QString label) const {
119 Event p(*this); 120 Event p(*this);
120 p.m_label = label; 121 p.m_label = label;