summaryrefslogtreecommitdiffstats
path: root/src/commands/studio/CreateOrDeleteDeviceCommand.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
commit11f31c37e5fa4889d9989f10272f44845449cb7b (patch)
tree4383da04a76c497950d957fc6120b0fd0d9082c2 /src/commands/studio/CreateOrDeleteDeviceCommand.cpp
parent832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff)
downloadrosegarden-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/commands/studio/CreateOrDeleteDeviceCommand.cpp')
-rw-r--r--src/commands/studio/CreateOrDeleteDeviceCommand.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/commands/studio/CreateOrDeleteDeviceCommand.cpp b/src/commands/studio/CreateOrDeleteDeviceCommand.cpp
index 48dc6c1..3933483 100644
--- a/src/commands/studio/CreateOrDeleteDeviceCommand.cpp
+++ b/src/commands/studio/CreateOrDeleteDeviceCommand.cpp
@@ -30,9 +30,9 @@
#include "base/Device.h"
#include "base/MidiDevice.h"
#include "base/Studio.h"
-#include <qcstring.h>
-#include <qdatastream.h>
-#include <qstring.h>
+#include <tqcstring.h>
+#include <tqdatastream.h>
+#include <tqstring.h>
#include "gui/application/RosegardenApplication.h"
@@ -74,10 +74,10 @@ CreateOrDeleteDeviceCommand::execute()
m_deviceCreated = true;
- QByteArray data;
- QByteArray replyData;
- QCString replyType;
- QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data;
+ TQByteArray replyData;
+ TQCString replyType;
+ TQDataStream arg(data, IO_WriteOnly);
arg << (int)m_type;
arg << (unsigned int)m_direction;
@@ -89,7 +89,7 @@ CreateOrDeleteDeviceCommand::execute()
return ;
}
- QDataStream reply(replyData, IO_ReadOnly);
+ TQDataStream reply(replyData, IO_ReadOnly);
reply >> m_deviceId;
if (m_deviceId == Device::NO_DEVICE) {
@@ -105,7 +105,7 @@ CreateOrDeleteDeviceCommand::execute()
arg << (unsigned int)m_deviceId;
arg << strtoqstr(m_connection);
- if (!rgapp->sequencerCall("setConnection(unsigned int, QString)",
+ if (!rgapp->sequencerCall("setConnection(unsigned int, TQString)",
replyType, replyData, data)) {
SEQMAN_DEBUG << "CreateDeviceCommand::execute - "
<< "failure in sequencer setConnection" << endl;
@@ -131,10 +131,10 @@ CreateOrDeleteDeviceCommand::execute()
// Delete
- QByteArray data;
- QByteArray replyData;
- QCString replyType;
- QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data;
+ TQByteArray replyData;
+ TQCString replyType;
+ TQDataStream arg(data, IO_WriteOnly);
if (m_deviceId == Device::NO_DEVICE)
return ;