diff options
Diffstat (limited to 'kfile-plugins/flac/kfile_flac.cpp')
-rw-r--r-- | kfile-plugins/flac/kfile_flac.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kfile-plugins/flac/kfile_flac.cpp b/kfile-plugins/flac/kfile_flac.cpp index 6462c917..be804ee1 100644 --- a/kfile-plugins/flac/kfile_flac.cpp +++ b/kfile-plugins/flac/kfile_flac.cpp @@ -56,9 +56,9 @@ K_EXPORT_COMPONENT_FACTORY(kfile_flac, KGenericFactory<KFlacPlugin>("kfile_flac")) -KFlacPlugin::KFlacPlugin( TQObject *parent, const char *name, +KFlacPlugin::KFlacPlugin( TQObject *tqparent, const char *name, const TQStringList &args ) - : KFilePlugin( parent, name, args ) + : KFilePlugin( tqparent, name, args ) { kdDebug(7034) << "flac plugin\n"; @@ -178,16 +178,16 @@ bool KFlacPlugin::readInfo( KFileMetaInfo& info, uint what ) { KFileMetaInfoGroup commentgroup = appendGroup(info, "Comment"); - TQString date = file->tag()->year() > 0 ? TQString::number(file->tag()->year()) : TQString::null; - TQString track = file->tag()->track() > 0 ? TQString::number(file->tag()->track()) : TQString::null; + TQString date = file->tag()->year() > 0 ? TQString::number(file->tag()->year()) : TQString(); + TQString track = file->tag()->track() > 0 ? TQString::number(file->tag()->track()) : TQString(); - appendItem(commentgroup, "Title", TStringToQString(file->tag()->title()).stripWhiteSpace()); - appendItem(commentgroup, "Artist", TStringToQString(file->tag()->artist()).stripWhiteSpace()); - appendItem(commentgroup, "Album", TStringToQString(file->tag()->album()).stripWhiteSpace()); + appendItem(commentgroup, "Title", TQString(TStringToQString(file->tag()->title())).stripWhiteSpace()); + appendItem(commentgroup, "Artist", TQString(TStringToQString(file->tag()->artist())).stripWhiteSpace()); + appendItem(commentgroup, "Album", TQString(TStringToQString(file->tag()->album())).stripWhiteSpace()); appendItem(commentgroup, "Date", date); - appendItem(commentgroup, "Comment", TStringToQString(file->tag()->comment()).stripWhiteSpace()); + appendItem(commentgroup, "Comment", TQString(TStringToQString(file->tag()->comment())).stripWhiteSpace()); appendItem(commentgroup, "Tracknumber", track); - appendItem(commentgroup, "Genre", TStringToQString(file->tag()->genre()).stripWhiteSpace()); + appendItem(commentgroup, "Genre", TQString(TStringToQString(file->tag()->genre())).stripWhiteSpace()); } if (readTech && file->audioProperties()) @@ -269,14 +269,14 @@ bool KFlacPlugin::writeInfo(const KFileMetaInfo& info) const TQValidator* KFlacPlugin::createValidator( const TQString&, const TQString &group, const TQString &key, - TQObject* parent, const char* name) const + TQObject* tqparent, const char* name) const { if(key == "Tracknumber" || key == "Date") { - return new TQIntValidator(0, 9999, parent, name); + return new TQIntValidator(0, 9999, tqparent, name); } else - return new TQRegExpValidator(TQRegExp(".*"), parent, name); + return new TQRegExpValidator(TQRegExp(".*"), tqparent, name); } #include "kfile_flac.moc" |