diff options
author | Tim E. Real <termtech@rogers.com> | 2010-11-23 07:18:49 +0000 |
---|---|---|
committer | Tim E. Real <termtech@rogers.com> | 2010-11-23 07:18:49 +0000 |
commit | ad60c07b70f65bdeab8c0b3bd58bc5421d93f4ab (patch) | |
tree | fcfbce1256e7176219a544b2ef4dabc3670400b3 /muse2/muse/track.h | |
parent | d0196814541920684787c1e0b8d99379eff8860f (diff) |
Added Track::cname(), applied to strip labels' object names, so they may be used in style sheets.
Diffstat (limited to 'muse2/muse/track.h')
-rw-r--r-- | muse2/muse/track.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/muse2/muse/track.h b/muse2/muse/track.h index c0a11056..0d9c3f6e 100644 --- a/muse2/muse/track.h +++ b/muse2/muse/track.h @@ -89,6 +89,9 @@ class Track { Track(const Track&, bool cloneParts); virtual ~Track() {}; virtual Track& operator=(const Track& t); + + static const char* _cname[]; + QString comment() const { return _comment; } void setComment(const QString& s) { _comment = s; } @@ -117,6 +120,7 @@ class Track { TrackType type() const { return _type; } void setType(TrackType t) { _type = t; } + QString cname() const { int t = type(); return QString(_cname[t]); } // routing RouteList* inRoutes() { return &_inRoutes; } |