summaryrefslogtreecommitdiffstats
path: root/src/gui/seqmanager/ControlBlockMmapper.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/gui/seqmanager/ControlBlockMmapper.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/gui/seqmanager/ControlBlockMmapper.cpp')
-rw-r--r--src/gui/seqmanager/ControlBlockMmapper.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/seqmanager/ControlBlockMmapper.cpp b/src/gui/seqmanager/ControlBlockMmapper.cpp
index 90ab6c2..3b49bcc 100644
--- a/src/gui/seqmanager/ControlBlockMmapper.cpp
+++ b/src/gui/seqmanager/ControlBlockMmapper.cpp
@@ -35,8 +35,8 @@
#include "document/RosegardenGUIDoc.h"
#include "sound/ControlBlock.h"
#include <kglobal.h>
-#include <qfile.h>
-#include <qstring.h>
+#include <tqfile.h>
+#include <tqstring.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
@@ -55,7 +55,7 @@ ControlBlockMmapper::ControlBlockMmapper(RosegardenGUIDoc* doc)
m_controlBlock(0)
{
// just in case
- QFile::remove
+ TQFile::remove
(m_fileName);
m_fd = ::open(m_fileName.latin1(), O_RDWR | O_CREAT | O_TRUNC,
@@ -76,7 +76,7 @@ ControlBlockMmapper::ControlBlockMmapper(RosegardenGUIDoc* doc)
MAP_SHARED, m_fd, 0);
if (m_mmappedBuffer == (void*) - 1) {
- SEQMAN_DEBUG << QString("mmap failed : (%1) %2\n").arg(errno).arg(strerror(errno));
+ SEQMAN_DEBUG << TQString("mmap failed : (%1) %2\n").arg(errno).arg(strerror(errno));
throw Exception("mmap failed");
}
@@ -91,11 +91,11 @@ ControlBlockMmapper::~ControlBlockMmapper()
{
::munmap(m_mmappedBuffer, m_mmappedSize);
::close(m_fd);
- QFile::remove
+ TQFile::remove
(m_fileName);
}
-QString ControlBlockMmapper::createFileName()
+TQString ControlBlockMmapper::createFileName()
{
return KGlobal::dirs()->resourceDirs("tmp").last() + "/rosegarden_control_block";
}