diff --git a/src/TrackList.cpp b/src/TrackList.cpp index 0147930..803d161 100644 --- a/src/TrackList.cpp +++ b/src/TrackList.cpp @@ -484,7 +484,7 @@ QString CTrackList::getProgramName(int program) }; if (program >= 0 && program < static_cast(arraySize(gmInstrumentNames))) - return QObject::tr(gmInstrumentNames[program]); + return tr(gmInstrumentNames[program]); else return QString(); } diff --git a/src/TrackList.h b/src/TrackList.h index 20bb4c6..bfa8e1f 100644 --- a/src/TrackList.h +++ b/src/TrackList.h @@ -32,6 +32,7 @@ #include #include #include +#include #include "MidiEvent.h" #include "Chord.h" @@ -49,8 +50,9 @@ public: }; -class CTrackList +class CTrackList : public QObject { +Q_OBJECT public: CTrackList() {