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)))
|
if (program >= 0 && program < static_cast<int>(arraySize(gmInstrumentNames)))
|
||||||
return QObject::tr(gmInstrumentNames[program]);
|
return tr(gmInstrumentNames[program]);
|
||||||
else
|
else
|
||||||
return QString();
|
return QString();
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QList>
|
#include <QList>
|
||||||
#include <QListWidgetItem>
|
#include <QListWidgetItem>
|
||||||
|
#include <QObject>
|
||||||
|
|
||||||
#include "MidiEvent.h"
|
#include "MidiEvent.h"
|
||||||
#include "Chord.h"
|
#include "Chord.h"
|
||||||
|
@ -49,8 +50,9 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class CTrackList
|
class CTrackList : public QObject
|
||||||
{
|
{
|
||||||
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
CTrackList()
|
CTrackList()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user