diff options
author | Timothy Pearson <[email protected]> | 2011-12-18 18:14:51 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-18 18:14:51 -0600 |
commit | ef13416bfc43e51ef4e20919e0fab81ae05e0fe2 (patch) | |
tree | 76bc36e1cbecae4d7811b5605adfb0804d0041f9 /src/sound/MidiFile.cpp | |
parent | 6ca08e7a881c0c97f338e0085f75af04ec08ad04 (diff) | |
download | rosegarden-ef13416bfc43e51ef4e20919e0fab81ae05e0fe2.tar.gz rosegarden-ef13416bfc43e51ef4e20919e0fab81ae05e0fe2.zip |
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'src/sound/MidiFile.cpp')
-rw-r--r-- | src/sound/MidiFile.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/sound/MidiFile.cpp b/src/sound/MidiFile.cpp index 509b3d3..a2a4475 100644 --- a/src/sound/MidiFile.cpp +++ b/src/sound/MidiFile.cpp @@ -171,7 +171,7 @@ MidiFile::getMidiByte(ifstream* midiFile) emit setProgress((int)(double(midiFile->tellg()) / double(m_fileSize) * 20.0)); - kapp->tqprocessEvents(50); + kapp->processEvents(50); } return (MidiByte)byte; @@ -249,7 +249,7 @@ MidiFile::getMidiBytes(ifstream* midiFile, unsigned long numberOfBytes) if (bytesGot % 2000 == 0) { emit setProgress((int)(double(midiFile->tellg()) / double(m_fileSize) * 20.0)); - kapp->tqprocessEvents(50); + kapp->processEvents(50); } return stringRet; @@ -524,7 +524,7 @@ MidiFile::parseTrack(ifstream* midiFile, TrackId &lastTrackNum) TrackId metaTrack = lastTrackNum; // Remember the last non-meta status byte (-1 if we haven't seen one) - int runningtqStatus = -1; + int runningStatus = -1; bool firstTrack = true; @@ -550,11 +550,11 @@ MidiFile::parseTrack(ifstream* midiFile, TrackId &lastTrackNum) midiByte = getMidiByte(midiFile); if (!(midiByte & MIDI_STATUS_BYTE_MASK)) { - if (runningtqStatus < 0) { + if (runningStatus < 0) { throw (Exception("Running status used for first event in track")); } - eventCode = (MidiByte)runningtqStatus; + eventCode = (MidiByte)runningStatus; data1 = midiByte; #ifdef MIDI_DEBUG @@ -603,7 +603,7 @@ MidiFile::parseTrack(ifstream* midiFile, TrackId &lastTrackNum) } else // the rest { - runningtqStatus = eventCode; + runningStatus = eventCode; MidiEvent *midiEvent; @@ -842,7 +842,7 @@ MidiFile::convertToRosegarden(Composition &composition, ConversionType type) // split over these tracks emit setProgress(20 + (int)((80.0 * double(i) / double(m_numberOfTracks)))); - kapp->tqprocessEvents(50); + kapp->processEvents(50); // Convert the deltaTime to an absolute time since // the start of the segment. The addTime method @@ -2120,7 +2120,7 @@ MidiFile::writeTrack(std::ofstream* midiFile, TrackId trackNumber) if (progressCount % 500 == 0) { emit setProgress(progressCount * 100 / progressTotal); - kapp->tqprocessEvents(500); + kapp->processEvents(500); } } |