diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
commit | e654398e46e37abf457b2b1122ab898d2c51c49f (patch) | |
tree | d39ee6440f3c3663c3ead84a2d4cc2d034667e96 /kfile-plugins/m3u/kfile_m3u.cpp | |
parent | e4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff) | |
download | tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kfile-plugins/m3u/kfile_m3u.cpp')
-rw-r--r-- | kfile-plugins/m3u/kfile_m3u.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kfile-plugins/m3u/kfile_m3u.cpp b/kfile-plugins/m3u/kfile_m3u.cpp index ab719152..5fff1a08 100644 --- a/kfile-plugins/m3u/kfile_m3u.cpp +++ b/kfile-plugins/m3u/kfile_m3u.cpp @@ -26,19 +26,19 @@ #include <klocale.h> #include <kgenericfactory.h> -#include <qcstring.h> -#include <qfile.h> -#include <qtextstream.h> -#include <qdatetime.h> -#include <qdict.h> -#include <qvalidator.h> +#include <tqcstring.h> +#include <tqfile.h> +#include <tqtextstream.h> +#include <tqdatetime.h> +#include <tqdict.h> +#include <tqvalidator.h> typedef KGenericFactory<KM3uPlugin> M3uFactory; K_EXPORT_COMPONENT_FACTORY( kfile_m3u, M3uFactory( "kfile_m3u" ) ) -KM3uPlugin::KM3uPlugin( QObject *parent, const char *name, - const QStringList &preferredItems ) +KM3uPlugin::KM3uPlugin( TQObject *parent, const char *name, + const TQStringList &preferredItems ) : KFilePlugin( parent, name, preferredItems ) { kdDebug(7034) << "m3u plugin\n"; @@ -49,7 +49,7 @@ KM3uPlugin::KM3uPlugin( QObject *parent, const char *name, // tracks group group = addGroupInfo(info, "Tracks", i18n("Tracks")); - addVariableInfo(group, QVariant::String, 0); + addVariableInfo(group, TQVariant::String, 0); } bool KM3uPlugin::readInfo( KFileMetaInfo& info, uint ) @@ -57,10 +57,10 @@ bool KM3uPlugin::readInfo( KFileMetaInfo& info, uint ) if ( info.path().isEmpty() ) // remote file return false; - QFile f(info.path()); + TQFile f(info.path()); if (!f.open(IO_ReadOnly)) return false; - QTextStream str(&f); - str.setEncoding(QTextStream::Locale); + TQTextStream str(&f); + str.setEncoding(TQTextStream::Locale); KFileMetaInfoGroup group = appendGroup(info, "Tracks"); @@ -69,7 +69,7 @@ bool KM3uPlugin::readInfo( KFileMetaInfo& info, uint ) int num = 1; while (!str.atEnd()) { - QString s = str.readLine(); + TQString s = str.readLine(); if (!s.startsWith("#")) { if (s.endsWith("\n")) s.truncate(s.length()-1); |