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/muse/midictrl.cpp | |
parent | 1e2c10156202d4b50df409a1930adc3f151e44dc (diff) |
Converted all latin1() instances. Ported Qt3 methods to Qt4.
Diffstat (limited to 'muse2/muse/midictrl.cpp')
-rw-r--r-- | muse2/muse/midictrl.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/muse2/muse/midictrl.cpp b/muse2/muse/midictrl.cpp index 3994fe90..570e3bf9 100644 --- a/muse2/muse/midictrl.cpp +++ b/muse2/muse/midictrl.cpp @@ -333,9 +333,9 @@ void MidiController::write(int level, Xml& xml) const else sl.setNum(l); - xml.nput(level, "<Controller name=\"%s\"", Xml::xmlString(_name).latin1()); + xml.nput(level, "<Controller name=\"%s\"", Xml::xmlString(_name).toLatin1().constData()); if(t != Controller7) - xml.nput(" type=\"%s\"", type.latin1()); + xml.nput(" type=\"%s\"", type.toLatin1().constData()); int mn = 0; int mx = 0; @@ -344,18 +344,18 @@ void MidiController::write(int level, Xml& xml) const case RPN: case NRPN: xml.nput(" h=\"%d\"", h); - xml.nput(" l=\"%s\"", sl.latin1()); + xml.nput(" l=\"%s\"", sl.toLatin1().constData()); mx = 127; break; case Controller7: - xml.nput(" l=\"%s\"", sl.latin1()); + xml.nput(" l=\"%s\"", sl.toLatin1().constData()); mx = 127; break; case Controller14: case RPN14: case NRPN14: xml.nput(" h=\"%d\"", h); - xml.nput(" l=\"%s\"", sl.latin1()); + xml.nput(" l=\"%s\"", sl.toLatin1().constData()); mx = 16383; break; case Pitch: |