diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
commit | 11f31c37e5fa4889d9989f10272f44845449cb7b (patch) | |
tree | 4383da04a76c497950d957fc6120b0fd0d9082c2 /src/sound/AlsaDriver.cpp | |
parent | 832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff) | |
download | rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.tar.gz rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.zip |
Initial TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/sound/AlsaDriver.cpp')
-rw-r--r-- | src/sound/AlsaDriver.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/sound/AlsaDriver.cpp b/src/sound/AlsaDriver.cpp index 9d512d9..16a152b 100644 --- a/src/sound/AlsaDriver.cpp +++ b/src/sound/AlsaDriver.cpp @@ -46,7 +46,7 @@ #include "AudioPlayQueue.h" #include "ExternalTransport.h" -#include <qregexp.h> +#include <tqregexp.h> #include <pthread.h> @@ -969,13 +969,13 @@ AlsaDriver::createMidiDevice(AlsaPortDescription *port, if (reqDirection == MidiDevice::Play) { - QString portName; + TQString portName; - if (QString(deviceName).startsWith("Anonymous MIDI device ")) { - portName = QString("out %1") + if (TQString(deviceName).startsWith("Anonymous MIDI device ")) { + portName = TQString("out %1") .arg(m_outputPorts.size() + 1); } else { - portName = QString("out %1 - %2") + portName = TQString("out %1 - %2") .arg(m_outputPorts.size() + 1) .arg(deviceName); } @@ -1140,7 +1140,7 @@ AlsaDriver::removeDevice(DeviceId id) } void -AlsaDriver::renameDevice(DeviceId id, QString name) +AlsaDriver::renameDevice(DeviceId id, TQString name) { DeviceIntMap::iterator i = m_outputPorts.find(id); if (i == m_outputPorts.end()) { @@ -1153,10 +1153,10 @@ AlsaDriver::renameDevice(DeviceId id, QString name) snd_seq_port_info_alloca(&pinfo); snd_seq_get_port_info(m_midiHandle, i->second, pinfo); - QString oldName = snd_seq_port_info_get_name(pinfo); + TQString oldName = snd_seq_port_info_get_name(pinfo); int sep = oldName.find(" - "); - QString newName; + TQString newName; if (name.startsWith("Anonymous MIDI device ")) { if (sep < 0) @@ -1249,7 +1249,7 @@ AlsaDriver::getConnection(Device::DeviceType type, } void -AlsaDriver::setConnectionToDevice(MappedDevice &device, QString connection) +AlsaDriver::setConnectionToDevice(MappedDevice &device, TQString connection) { ClientPortPair pair( -1, -1); if (connection && connection != "") { @@ -1259,10 +1259,10 @@ AlsaDriver::setConnectionToDevice(MappedDevice &device, QString connection) } void -AlsaDriver::setConnectionToDevice(MappedDevice &device, QString connection, +AlsaDriver::setConnectionToDevice(MappedDevice &device, TQString connection, const ClientPortPair &pair) { - QString prevConnection = device.getConnection().c_str(); + TQString prevConnection = device.getConnection().c_str(); device.setConnection(connection.data()); if (device.getDirection() == MidiDevice::Play) { @@ -1320,7 +1320,7 @@ AlsaDriver::setConnectionToDevice(MappedDevice &device, QString connection, } void -AlsaDriver::setConnection(DeviceId id, QString connection) +AlsaDriver::setConnection(DeviceId id, TQString connection) { Audit audit; ClientPortPair port(getPortByName(connection.data())); @@ -1346,7 +1346,7 @@ AlsaDriver::setConnection(DeviceId id, QString connection) } void -AlsaDriver::setPlausibleConnection(DeviceId id, QString idealConnection) +AlsaDriver::setPlausibleConnection(DeviceId id, TQString idealConnection) { Audit audit; ClientPortPair port(getPortByName(idealConnection.data())); @@ -1389,16 +1389,16 @@ AlsaDriver::setPlausibleConnection(DeviceId id, QString idealConnection) int portNo = -1; if (client > 0) { - QString remainder = idealConnection.mid(colon + 1); + TQString remainder = idealConnection.mid(colon + 1); int space = remainder.find(" "); if (space >= 0) portNo = remainder.left(space).toInt(); } int firstSpace = idealConnection.find(" "); - int endOfText = idealConnection.find(QRegExp("[^\\w ]"), firstSpace); + int endOfText = idealConnection.find(TQRegExp("[^\\w ]"), firstSpace); - QString text; + TQString text; if (endOfText < 2) { text = idealConnection.mid(firstSpace + 1); } else { @@ -1448,7 +1448,7 @@ AlsaDriver::setPlausibleConnection(DeviceId id, QString idealConnection) } if (testName && text != "" && - !QString(port->m_name.c_str()).contains(text)) + !TQString(port->m_name.c_str()).contains(text)) continue; if (testUsed) { @@ -1603,7 +1603,7 @@ AlsaDriver::getCurrentTimer() } void -AlsaDriver::setCurrentTimer(QString timer) +AlsaDriver::setCurrentTimer(TQString timer) { Audit audit; @@ -4479,7 +4479,7 @@ AlsaDriver::processEventsOut(const MappedComposition &mC, bool AlsaDriver::record(RecordStatus recordStatus, const std::vector<InstrumentId> *armedInstruments, - const std::vector<QString> *audioFileNames) + const std::vector<TQString> *audioFileNames) { m_recordingInstruments.clear(); @@ -4501,7 +4501,7 @@ AlsaDriver::record(RecordStatus recordStatus, continue; } - QString fileName = (*audioFileNames)[audioCount]; + TQString fileName = (*audioFileNames)[audioCount]; if (id >= AudioInstrumentBase && id < MidiInstrumentBase) { @@ -4781,7 +4781,7 @@ AlsaDriver::checkForNewClients() audit << (*i)->m_name << std::endl; - QString portName = (*i)->m_name.c_str(); + TQString portName = (*i)->m_name.c_str(); ClientPortPair portPair = ClientPortPair((*i)->m_client, (*i)->m_port); @@ -5257,7 +5257,7 @@ AlsaDriver::scavengePlugins() QString AlsaDriver::getStatusLog() { - return QString::fromUtf8(Audit::getAudit().c_str()); + return TQString::fromUtf8(Audit::getAudit().c_str()); } |