aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpchanneleditor.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-04-12 23:37:24 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-04-12 23:37:24 +0800
commit43ae9bb08b7f3f18028fa8663a6077f4ae1ccbca (patch)
treeb957cdb79e2af63fd7222c63b9a79e307de4834f /qmidiplayer-desktop/qmpchanneleditor.cpp
parentcd09a7e8a42c8f3617cfe3c57eed3b96bcfd2ec5 (diff)
downloadQMidiPlayer-43ae9bb08b7f3f18028fa8663a6077f4ae1ccbca.tar.xz
Mysterious Mountain. (Partially fixed #2)
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);