diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-05-11 23:38:21 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-05-11 23:38:21 +0800 |
commit | 59304aa1b2c6d278e76f72509183fee96bbb8cae (patch) | |
tree | ad50b86aaf71497588372de7089ff71b05b00a7b /qmidiplayer-desktop/qmpchannelswindow.cpp | |
parent | d4c66cbcfb1411312b2c2f3c83e76a4882b8577a (diff) | |
download | QMidiPlayer-59304aa1b2c6d278e76f72509183fee96bbb8cae.tar.xz |
Fixed a crash caused by the visualization plugin.
Fixed a bug when piano is hidden but the option "arrange
channels on a stair" is enabled.
Add channel label display. However it's still buggy so it's
currently disabled.
Diffstat (limited to 'qmidiplayer-desktop/qmpchannelswindow.cpp')
-rw-r--r-- | qmidiplayer-desktop/qmpchannelswindow.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/qmidiplayer-desktop/qmpchannelswindow.cpp b/qmidiplayer-desktop/qmpchannelswindow.cpp index 7def34d..e0a1522 100644 --- a/qmidiplayer-desktop/qmpchannelswindow.cpp +++ b/qmidiplayer-desktop/qmpchannelswindow.cpp @@ -66,10 +66,10 @@ qmpChannelsWindow::qmpChannelsWindow(QWidget *parent) : connect(ui->twChannels->cellWidget(i,5),SIGNAL(onClick(int)),this,SLOT(showChannelEditorWindow(int))); } ui->twChannels->setColumnWidth(0,24); - ui->twChannels->setColumnWidth(1,32); - ui->twChannels->setColumnWidth(2,32); + ui->twChannels->setColumnWidth(1,24); + ui->twChannels->setColumnWidth(2,24); ui->twChannels->setColumnWidth(3,192); - ui->twChannels->setColumnWidth(4,192); + ui->twChannels->setColumnWidth(4,208); ui->twChannels->setColumnWidth(5,32); } @@ -136,10 +136,10 @@ void qmpChannelsWindow::channelWindowsUpdate() } for(int i=0;i<16;++i) { - char data[128],nm[24]; + char data[128],nm[25]; int b,p; qmpMainWindow::getInstance()->getPlayer()->getChannelPreset(i,&b,&p,nm); - sprintf(data,"%d:%d %s",b,p,nm); + sprintf(data,"%03d:%03d %s",b,p,nm); if(fused) { if(strcmp(((QLabel*)ui->twChannels->cellWidget(i,4))-> |