From c856c3c44f488b137dd3b76f81b2d4b9c5444b73 Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Tue, 7 Dec 2010 23:40:10 +0000 Subject: Converted all latin1() instances. Ported Qt3 methods to Qt4. --- muse2/synti/fluidsynth/fluidsynthgui.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'muse2/synti/fluidsynth/fluidsynthgui.cpp') diff --git a/muse2/synti/fluidsynth/fluidsynthgui.cpp b/muse2/synti/fluidsynth/fluidsynthgui.cpp index d591ecb9..39344c02 100644 --- a/muse2/synti/fluidsynth/fluidsynthgui.cpp +++ b/muse2/synti/fluidsynth/fluidsynthgui.cpp @@ -142,7 +142,7 @@ void FluidSynthGui::pushClicked() const QString& fns = Filename->text(); if (fns.isEmpty()) return; - const char * fn = fns.latin1(); + const char * fn = fns.toLatin1(); int datalen = strlen(fn) + 3; unsigned char data [datalen]; @@ -183,7 +183,7 @@ void FluidSynthGui::sendLastdir(QString dir) int l = strlen(dir)+2; byte data[l]; data[0] = FS_LASTDIR_CHANGE; - memcpy(data+1, dir.latin1(), strlen(dir)+1); + memcpy(data+1, dir.toLatin1(), strlen(dir)+1); sendSysex(data,l); } @@ -198,7 +198,7 @@ void FluidSynthGui::sendLoadFont(QString filename) byte data[l]; data[0] = FS_PUSH_FONT; data[1] = FS_UNSPECIFIED_ID; - memcpy(data+2, filename.latin1(), filename.length()+1); + memcpy(data+2, filename.toLatin1(), filename.length()+1); sendSysex(data,l); } @@ -484,7 +484,7 @@ void FluidSynthGui::channelItemClicked(QTableWidgetItem* item) int i = 0; for (std::list::reverse_iterator it = stack.rbegin(); it != stack.rend(); it++) { i++; - /*byte* d = (byte*) it->name.latin1(); + /*byte* d = (byte*) it->name.toLatin1(); for (int i=0; i<96; i++) { if (i%16 == 0) printf("%x:",(i+d)); @@ -523,7 +523,7 @@ void FluidSynthGui::channelItemClicked(QTableWidgetItem* item) sfid = getSoundFontId(act->text()); fontname = getSoundFontName(sfid); } - //byte channel = atoi(item->text().latin1()) - 1; + //byte channel = atoi(item->text().toLatin1()) - 1; byte channel = row; sendChannelChange(sfid, channel); item->setText(fontname); @@ -541,7 +541,7 @@ void FluidSynthGui::channelItemClicked(QTableWidgetItem* item) yes->setData(1); QAction * no = popup->addAction("No"); no->setData(0); - //byte channel = atoi(item->text().latin1()) - 1; + //byte channel = atoi(item->text().toLatin1()) - 1; byte channel = row; QAction * act2 = popup->exec(ppt, 0); @@ -816,9 +816,9 @@ int main(int argc, char* argv[]) museGlobalShare = getenv("MUSE"); if (museGlobalShare == 0) { museGlobalShare = "/usr/muse"; - if (access(museGlobalShare.latin1(), R_OK) != 0) { + if (access(museGlobalShare.toLatin1(), R_OK) != 0) { museGlobalShare = "/usr/local/muse"; - if (access(museGlobalShare.latin1(), R_OK) != 0) + if (access(museGlobalShare.toLatin1(), R_OK) != 0) museGlobalShare = museUser; } }*/ -- cgit v1.2.3