fix translate InstrumentNames
This commit is contained in:
parent
e8e7a91fa2
commit
5cc3b11326
|
@ -484,7 +484,7 @@ QString CTrackList::getProgramName(int program)
|
|||
};
|
||||
|
||||
if (program >= 0 && program < static_cast<int>(arraySize(gmInstrumentNames)))
|
||||
return QObject::tr(gmInstrumentNames[program]);
|
||||
return tr(gmInstrumentNames[program]);
|
||||
else
|
||||
return QString();
|
||||
}
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
#include <QString>
|
||||
#include <QList>
|
||||
#include <QListWidgetItem>
|
||||
#include <QObject>
|
||||
|
||||
#include "MidiEvent.h"
|
||||
#include "Chord.h"
|
||||
|
@ -49,8 +50,9 @@ public:
|
|||
};
|
||||
|
||||
|
||||
class CTrackList
|
||||
class CTrackList : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
CTrackList()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user