diff options
Diffstat (limited to 'src/sound/AudioFileManager.cpp')
-rw-r--r-- | src/sound/AudioFileManager.cpp | 30 |
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()) { |