diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-04-24 23:47:04 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-04-24 23:47:04 +0800 |
commit | 800a0417e9ed175f220c472842a283202c77060b (patch) | |
tree | 6609fcccf55d176d8eb61aa69526a19ba1859487 /qmidiplayer-desktop/qmpinfowindow.cpp | |
parent | aa8af83ff8889aa136e9152b2cca9a88d99c5f47 (diff) | |
download | QMidiPlayer-800a0417e9ed175f220c472842a283202c77060b.tar.xz |
Problematic commit...
Diffstat (limited to 'qmidiplayer-desktop/qmpinfowindow.cpp')
-rw-r--r-- | qmidiplayer-desktop/qmpinfowindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qmidiplayer-desktop/qmpinfowindow.cpp b/qmidiplayer-desktop/qmpinfowindow.cpp index 689a756..95ad223 100644 --- a/qmidiplayer-desktop/qmpinfowindow.cpp +++ b/qmidiplayer-desktop/qmpinfowindow.cpp @@ -45,7 +45,7 @@ void qmpInfoWindow::updateInfo() } else ui->lbCopyright->setText(QString("Copyright: ")); ui->lbTempo->setText(QString("Tempo: ")+QString::number(player->getTempo(),'g',5)); - int t,r;player->getCurrentKeySignature(&t);r=(int8_t)((t>>8)&0xFF)+7; + int t,r;t=player->getCurrentKeySignature();r=(int8_t)((t>>8)&0xFF)+7; strncpy(str,t&0xFF?minors+2*r:majors+2*r,2);str[2]='\0'; ui->lbKeySig->setText(QString("Key Sig.: ")+str); player->getCurrentTimeSignature(&t,&r);sprintf(str,"Time Sig.: %d/%d",t,r); |