diff options
author | Orcan Ogetbil <oget.fedora@gmail.com> | 2010-12-07 23:40:10 +0000 |
---|---|---|
committer | Orcan Ogetbil <oget.fedora@gmail.com> | 2010-12-07 23:40:10 +0000 |
commit | c856c3c44f488b137dd3b76f81b2d4b9c5444b73 (patch) | |
tree | 88a64ae28e48d4f71396d329b0d1c797b31accc3 /muse2/synti/simpledrums/simpledrumsgui.cpp | |
parent | 1e2c10156202d4b50df409a1930adc3f151e44dc (diff) |
Converted all latin1() instances. Ported Qt3 methods to Qt4.
Diffstat (limited to 'muse2/synti/simpledrums/simpledrumsgui.cpp')
-rw-r--r-- | muse2/synti/simpledrums/simpledrumsgui.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/muse2/synti/simpledrums/simpledrumsgui.cpp b/muse2/synti/simpledrums/simpledrumsgui.cpp index 3ba474af..f874a136 100644 --- a/muse2/synti/simpledrums/simpledrumsgui.cpp +++ b/muse2/synti/simpledrums/simpledrumsgui.cpp @@ -512,7 +512,7 @@ void SimpleSynthGui::processEvent(const MidiPlayEvent& ev) QString filename = (const char*) (data+2); sampleNameLineEdit[ch]->setText(filename.section('/',-1,-1)); if (SS_DEBUG_MIDI) { - printf("SimpleSynthGui - sample %s loaded OK on channel: %d\n", filename.latin1(), ch); + printf("SimpleSynthGui - sample %s loaded OK on channel: %d\n", filename.toLatin1(), ch); } if (!onOff[ch]->isChecked()) { onOff[ch]->blockSignals(true); @@ -708,7 +708,7 @@ void SimpleSynthGui::loadSampleDialogue(int channel) lastDir = filename.left(filename.findRev("/")); if (SS_DEBUG) - printf("lastDir = %s\n", lastDir.latin1()); + printf("lastDir = %s\n", lastDir.toLatin1()); int l = filename.length() + 4; byte d[l]; @@ -716,7 +716,7 @@ void SimpleSynthGui::loadSampleDialogue(int channel) d[0] = SS_SYSEX_LOAD_SAMPLE; d[1] = (byte) channel; d[2] = (byte) filename.length(); - memcpy(d+3, filename.latin1(), filename.length()+1); + memcpy(d+3, filename.toLatin1(), filename.length()+1); sendSysex(d, l); } } @@ -753,8 +753,8 @@ void SimpleSynthGui::loadEffectInvoked(int fxid, QString lib, QString label) byte d[l]; d[0] = SS_SYSEX_LOAD_SENDEFFECT; d[1] = (byte) fxid; - memcpy (d+2, lib.latin1(), lib.length()+1); - memcpy (d+3+lib.length(), label.latin1(), label.length()+1); + memcpy (d+2, lib.toLatin1(), lib.length()+1); + memcpy (d+3+lib.length(), label.toLatin1(), label.length()+1); sendSysex(d, l); } |