summaryrefslogtreecommitdiffstats
path: root/kioslave/audiocd/plugins/vorbis/encodervorbis.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kioslave/audiocd/plugins/vorbis/encodervorbis.cpp')
-rw-r--r--kioslave/audiocd/plugins/vorbis/encodervorbis.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kioslave/audiocd/plugins/vorbis/encodervorbis.cpp b/kioslave/audiocd/plugins/vorbis/encodervorbis.cpp
index 5b61f6ea..739e1c8f 100644
--- a/kioslave/audiocd/plugins/vorbis/encodervorbis.cpp
+++ b/kioslave/audiocd/plugins/vorbis/encodervorbis.cpp
@@ -33,14 +33,14 @@
#include <stdlib.h>
#include <kconfig.h>
#include <knuminput.h>
-#include <qgroupbox.h>
+#include <tqgroupbox.h>
#include <kglobal.h>
#include <klocale.h>
extern "C"
{
- KDE_EXPORT void create_audiocd_encoders(KIO::SlaveBase *slave, QPtrList<AudioCDEncoder> &encoders)
+ KDE_EXPORT void create_audiocd_encoders(KIO::SlaveBase *slave, TQPtrList<AudioCDEncoder> &encoders)
{
encoders.append(new EncoderVorbis(slave));
}
@@ -79,7 +79,7 @@ EncoderVorbis::~EncoderVorbis(){
delete d;
}
-QWidget* EncoderVorbis::getConfigureWidget(KConfigSkeleton** manager) const {
+TQWidget* EncoderVorbis::getConfigureWidget(KConfigSkeleton** manager) const {
(*manager) = Settings::self();
KGlobal::locale()->insertCatalogue("audiocd_encoder_vorbis");
EncoderVorbisConfig *config = new EncoderVorbisConfig();
@@ -170,7 +170,7 @@ long EncoderVorbis::flush_vorbis(void) {
while(int result=ogg_stream_pageout(&d->os,&d->og)) {
if (!result) break;
- QByteArray output;
+ TQByteArray output;
char * oggheader = reinterpret_cast<char *>(d->og.header);
char * oggbody = reinterpret_cast<char *>(d->og.body);
@@ -250,7 +250,7 @@ long EncoderVorbis::readInit(long /*size*/){
if (!result) break;
- QByteArray output;
+ TQByteArray output;
char * oggheader = reinterpret_cast<char *>(d->og.header);
char * oggbody = reinterpret_cast<char *>(d->og.body);
@@ -296,27 +296,27 @@ long EncoderVorbis::readCleanup(){
return processed;
}
-void EncoderVorbis::fillSongInfo( KCDDB::CDInfo info, int track, const QString &comment )
+void EncoderVorbis::fillSongInfo( KCDDB::CDInfo info, int track, const TQString &comment )
{
if( !d->write_vorbis_comments )
return;
- typedef QPair<QCString, QVariant> CommentField;
- QValueList<CommentField> commentFields;
+ typedef QPair<TQCString, TQVariant> CommentField;
+ TQValueList<CommentField> commentFields;
commentFields.append(CommentField("title", info.trackInfoList[track].get("title")));
commentFields.append(CommentField("artist", info.get("artist")));
commentFields.append(CommentField("album", info.get("title")));
commentFields.append(CommentField("genre", info.get("genre")));
- commentFields.append(CommentField("tracknumber", QString::number(track+1)));
+ commentFields.append(CommentField("tracknumber", TQString::number(track+1)));
commentFields.append(CommentField("comment", comment));
if (info.get("year").toInt() > 0) {
- QDateTime dt(QDate(info.get("year").toInt(), 1, 1));
+ TQDateTime dt(TQDate(info.get("year").toInt(), 1, 1));
commentFields.append(CommentField("date", dt.toString(Qt::ISODate).utf8().data()));
}
- for(QValueListIterator<CommentField> it = commentFields.begin(); it != commentFields.end(); ++it) {
+ for(TQValueListIterator<CommentField> it = commentFields.begin(); it != commentFields.end(); ++it) {
// if the value is not empty
if(!(*it).second.toString().isEmpty()) {