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/PeakFile.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/PeakFile.cpp')
-rw-r--r-- | src/sound/PeakFile.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/sound/PeakFile.cpp b/src/sound/PeakFile.cpp index 8881114..3c306db 100644 --- a/src/sound/PeakFile.cpp +++ b/src/sound/PeakFile.cpp @@ -22,9 +22,9 @@ #include <cstdlib> #include <kapplication.h> -#include <qdatetime.h> -#include <qstringlist.h> -#include <qpalette.h> +#include <tqdatetime.h> +#include <tqstringlist.h> +#include <tqpalette.h> #include <kapp.h> #include "PeakFile.h" @@ -57,7 +57,7 @@ PeakFile::PeakFile(AudioFile *audioFile): m_numberOfPeaks(0), m_positionPeakOfPeaks(0), m_offsetToPeaks(0), - m_modificationTime(QDate(1970, 1, 1), QTime(0, 0, 0)), + m_modificationTime(TQDate(1970, 1, 1), TQTime(0, 0, 0)), m_chunkStartPosition(0), m_lastPreviewStartTime(0, 0), m_lastPreviewEndTime(0, 0), @@ -73,7 +73,7 @@ PeakFile::open() { // Set the file size // - QFileInfo info(QString(m_fileName.c_str())); + TQFileInfo info(TQString(m_fileName.c_str())); m_fileSize = info.size(); // If we're already open then don't open again @@ -148,15 +148,15 @@ PeakFile::parseHeader() // Read in date string and convert it up to QDateTime // - QString dateString = QString(header.substr(40, 28).c_str()); + TQString dateString = TQString(header.substr(40, 28).c_str()); - QStringList dateTime = QStringList::split(":", dateString); + TQStringList dateTime = TQStringList::split(":", dateString); - m_modificationTime.setDate(QDate(dateTime[0].toInt(), + m_modificationTime.setDate(TQDate(dateTime[0].toInt(), dateTime[1].toInt(), dateTime[2].toInt())); - m_modificationTime.setTime(QTime(dateTime[3].toInt(), + m_modificationTime.setTime(TQTime(dateTime[3].toInt(), dateTime[4].toInt(), dateTime[5].toInt(), dateTime[6].toInt())); @@ -288,7 +288,7 @@ PeakFile::close() // m_modificationTime = m_modificationTime.currentDateTime(); - QString fDate; + TQString fDate; fDate.sprintf("%04d:%02d:%02d:%02d:%02d:%02d:%03d", m_modificationTime.date().year(), m_modificationTime.date().month(), |