summaryrefslogtreecommitdiffstats
path: root/src/sound/AudioFileManager.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:33:46 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:33:46 -0600
commit4faf11eccc5f08d2aa0540157d6eff80b7cdb02a (patch)
tree19bc4d69423c21bcde8ac0cb6fcb11146ae19137 /src/sound/AudioFileManager.cpp
parente6d6692eda797b10f322a83ffdcf23fca719709e (diff)
downloadrosegarden-4faf11eccc5f08d2aa0540157d6eff80b7cdb02a.tar.gz
rosegarden-4faf11eccc5f08d2aa0540157d6eff80b7cdb02a.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'src/sound/AudioFileManager.cpp')
-rw-r--r--src/sound/AudioFileManager.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/sound/AudioFileManager.cpp b/src/sound/AudioFileManager.cpp
index f8b57b1..10d6474 100644
--- a/src/sound/AudioFileManager.cpp
+++ b/src/sound/AudioFileManager.cpp
@@ -537,8 +537,8 @@ AudioFileManager::createRecordingAudioFile()
while (fileName == "") {
fileName = TQString("rg-%1-%2.wav")
- .tqarg(TQDateTime::tqcurrentDateTime().toString("yyyyMMdd-hhmmss"))
- .tqarg(newId + 1);
+ .arg(TQDateTime::currentDateTime().toString("yyyyMMdd-hhmmss"))
+ .arg(newId + 1);
if (TQFile(m_audioPath.c_str() + fileName).exists()) {
fileName = "";
@@ -622,10 +622,10 @@ AudioFileManager::createDerivedAudioFile(AudioFileId source,
while (fileName == "") {
fileName = TQString("%1-%2-%3-%4.wav")
- .tqarg(prefix)
- .tqarg(sourceBase.c_str())
- .tqarg(TQDateTime::tqcurrentDateTime().toString("yyyyMMdd-hhmmss"))
- .tqarg(newId + 1);
+ .arg(prefix)
+ .arg(sourceBase.c_str())
+ .arg(TQDateTime::currentDateTime().toString("yyyyMMdd-hhmmss"))
+ .arg(newId + 1);
if (TQFile(m_audioPath.c_str() + fileName).exists()) {
fileName = "";
@@ -657,11 +657,11 @@ AudioFileManager::importURL(const KURL &url, int sampleRate)
std::cerr << "AudioFileManager::importURL("<< url.prettyURL().ascii() << ", " << sampleRate << ")" << std::endl;
- emit setOperationName(i18n("Downloading file %1").tqarg(url.prettyURL()));
+ emit setOperationName(i18n("Downloading file %1").arg(url.prettyURL()));
TQString localPath = "";
if (!KIO::NetAccess::download(url, localPath)) {
- KMessageBox::error(0, i18n("Cannot download file %1").tqarg(url.prettyURL()));
+ KMessageBox::error(0, i18n("Cannot download file %1").arg(url.prettyURL()));
throw SoundFile::BadSoundFileException(url.prettyURL().ascii());
}
@@ -688,7 +688,7 @@ AudioFileManager::fileNeedsConversion(const std::string &fileName,
*proc << "rosegarden-audiofile-importer";
if (sampleRate > 0) {
*proc << "-r";
- *proc << TQString("%1").tqarg(sampleRate);
+ *proc << TQString("%1").arg(sampleRate);
}
*proc << "-w";
*proc << fileName.c_str();
@@ -715,7 +715,7 @@ AudioFileManager::importFile(const std::string &fileName, int sampleRate)
*proc << "rosegarden-audiofile-importer";
if (sampleRate > 0) {
*proc << "-r";
- *proc << TQString("%1").tqarg(sampleRate);
+ *proc << TQString("%1").arg(sampleRate);
}
*proc << "-w";
*proc << fileName.c_str();
@@ -753,9 +753,9 @@ AudioFileManager::importFile(const std::string &fileName, int sampleRate)
while (targetName == "") {
targetName = TQString("conv-%2-%3-%4.wav")
- .tqarg(sourceBase)
- .tqarg(TQDateTime::tqcurrentDateTime().toString("yyyyMMdd-hhmmss"))
- .tqarg(newId + 1);
+ .arg(sourceBase)
+ .arg(TQDateTime::currentDateTime().toString("yyyyMMdd-hhmmss"))
+ .arg(newId + 1);
if (TQFile(m_audioPath.c_str() + targetName).exists()) {
targetName = "";
@@ -768,7 +768,7 @@ AudioFileManager::importFile(const std::string &fileName, int sampleRate)
*m_importProcess << "rosegarden-audiofile-importer";
if (sampleRate > 0) {
*m_importProcess << "-r";
- *m_importProcess << TQString("%1").tqarg(sampleRate);
+ *m_importProcess << TQString("%1").arg(sampleRate);
}
*m_importProcess << "-c";
*m_importProcess << fileName.c_str();
@@ -777,7 +777,7 @@ AudioFileManager::importFile(const std::string &fileName, int sampleRate)
m_importProcess->start(KProcess::NotifyOnExit, KProcess::NoCommunication);
while (m_importProcess->isRunning()) {
- kapp->tqprocessEvents(100);
+ kapp->processEvents(100);
}
if (!m_importProcess->normalExit()) {