aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpchanneleditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qmidiplayer-desktop/qmpchanneleditor.cpp')
-rw-r--r--qmidiplayer-desktop/qmpchanneleditor.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/qmidiplayer-desktop/qmpchanneleditor.cpp b/qmidiplayer-desktop/qmpchanneleditor.cpp
index f1d4e5e..9b61e64 100644
--- a/qmidiplayer-desktop/qmpchanneleditor.cpp
+++ b/qmidiplayer-desktop/qmpchanneleditor.cpp
@@ -7,7 +7,7 @@ qmpChannelEditor::qmpChannelEditor(QWidget *parent) :
QDialog(parent),
ui(new Ui::qmpChannelEditor)
{
- ui->setupUi(this);
+ ui->setupUi(this);ch=0;
styl=new QDialSkulptureStyle();
QList<QDial*> dials=findChildren<QDial*>();
for(int i=0;i<dials.count();++i)
@@ -23,8 +23,7 @@ qmpChannelEditor::~qmpChannelEditor()
void qmpChannelEditor::setupWindow(int chid)
{
char str[256];if(~chid)ch=chid;
- sprintf(str,"Channel Parameter Editor - Channel #%d",ch+1);
- setWindowTitle(str);
+ setWindowTitle(tr("Channel Parameter Editor - Channel #%1").arg(ch+1));
CMidiPlayer* player=qmpMainWindow::getInstance()->getPlayer();
int b,p;
player->getChannelPreset(ch,&b,&p,str);