diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
commit | c663b6440964f6ac48027143ac9e63298991f9d0 (patch) | |
tree | 6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kioslave/media/kfile-plugin | |
parent | a061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff) | |
download | tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kioslave/media/kfile-plugin')
-rw-r--r-- | kioslave/media/kfile-plugin/kfilemediaplugin.cpp | 52 | ||||
-rw-r--r-- | kioslave/media/kfile-plugin/kfilemediaplugin.h | 4 |
2 files changed, 28 insertions, 28 deletions
diff --git a/kioslave/media/kfile-plugin/kfilemediaplugin.cpp b/kioslave/media/kfile-plugin/kfilemediaplugin.cpp index 37aa7d61f..bda34bff2 100644 --- a/kioslave/media/kfile-plugin/kfilemediaplugin.cpp +++ b/kioslave/media/kfile-plugin/kfilemediaplugin.cpp @@ -24,11 +24,11 @@ #include <dcopref.h> -#include <qpixmap.h> -#include <qpainter.h> -#include <qstyle.h> -#include <qapplication.h> -#include <qfile.h> +#include <tqpixmap.h> +#include <tqpainter.h> +#include <tqstyle.h> +#include <tqapplication.h> +#include <tqfile.h> #ifdef HAVE_STATVFS # include <sys/statvfs.h> @@ -41,8 +41,8 @@ typedef KGenericFactory<KFileMediaPlugin> KFileMediaPluginFactory; K_EXPORT_COMPONENT_FACTORY(kfile_media, KFileMediaPluginFactory("kio_media")) -KFileMediaPlugin::KFileMediaPlugin(QObject *parent, const char *name, - const QStringList& args) +KFileMediaPlugin::KFileMediaPlugin(TQObject *parent, const char *name, + const TQStringList& args) : KFilePlugin(parent, name, args) { addMimeType( "media/audiocd" ); @@ -94,9 +94,9 @@ bool KFileMediaPlugin::readInfo(KFileMetaInfo &info, uint /*what*/) if (medium.id().isNull()) return false; - QString mount_point = medium.mountPoint(); + TQString mount_point = medium.mountPoint(); KURL base_url = medium.prettyBaseURL(); - QString device_node = medium.deviceNode(); + TQString device_node = medium.deviceNode(); KFileMetaInfoGroup group = appendGroup(info, "mediumInfo"); @@ -119,7 +119,7 @@ bool KFileMediaPlugin::readInfo(KFileMetaInfo &info, uint /*what*/) struct statvfs vfs; memset(&vfs, 0, sizeof(vfs)); - if ( ::statvfs(QFile::encodeName(mount_point), &vfs) != -1 ) + if ( ::statvfs(TQFile::encodeName(mount_point), &vfs) != -1 ) { m_total = static_cast<KIO::filesize_t>(vfs.f_blocks) * static_cast<KIO::filesize_t>(vfs.f_frsize); m_free = static_cast<KIO::filesize_t>(vfs.f_bavail) * static_cast<KIO::filesize_t>(vfs.f_frsize); @@ -140,19 +140,19 @@ bool KFileMediaPlugin::readInfo(KFileMetaInfo &info, uint /*what*/) group = appendGroup(info, "mediumSummary"); - appendItem(group, "percent", QString("%1%").arg(percent)); + appendItem(group, "percent", TQString("%1%").arg(percent)); - QPixmap bar(150, 20); - QPainter p(&bar); + TQPixmap bar(150, 20); + TQPainter p(&bar); p.fillRect(0, 0, length, 20, Qt::red); p.fillRect(length, 0, 150-length, 20, Qt::green); - QColorGroup cg = QApplication::palette().active(); + TQColorGroup cg = TQApplication::palette().active(); - QApplication::style().drawPrimitive(QStyle::PE_Panel, &p, - QRect(0, 0, 150, 20), cg, - QStyle::Style_Sunken); + TQApplication::style().drawPrimitive(TQStyle::PE_Panel, &p, + TQRect(0, 0, 150, 20), cg, + TQStyle::Style_Sunken); appendItem( group, "thumbnail", bar ); } @@ -169,7 +169,7 @@ const Medium KFileMediaPlugin::askMedium(KFileMetaInfo &info) if ( !reply.isValid() ) { - return Medium(QString::null, QString::null); + return Medium(TQString::null, TQString::null); } return Medium::create(reply); @@ -183,24 +183,24 @@ void KFileMediaPlugin::addMimeType(const char *mimeType) = addGroupInfo(info, "mediumInfo", i18n("Medium Information")); KFileMimeTypeInfo::ItemInfo *item - = addItemInfo(group, "free", i18n("Free"), QVariant::ULongLong); + = addItemInfo(group, "free", i18n("Free"), TQVariant::ULongLong); setUnit(item, KFileMimeTypeInfo::Bytes); - item = addItemInfo(group, "used", i18n("Used"), QVariant::ULongLong); + item = addItemInfo(group, "used", i18n("Used"), TQVariant::ULongLong); setUnit(item, KFileMimeTypeInfo::Bytes); - item = addItemInfo(group, "total", i18n("Total"), QVariant::ULongLong); + item = addItemInfo(group, "total", i18n("Total"), TQVariant::ULongLong); setUnit(item, KFileMimeTypeInfo::Bytes); - item = addItemInfo(group, "baseURL", i18n("Base URL"), QVariant::String); - item = addItemInfo(group, "mountPoint", i18n("Mount Point"), QVariant::String); - item = addItemInfo(group, "deviceNode", i18n("Device Node"), QVariant::String); + item = addItemInfo(group, "baseURL", i18n("Base URL"), TQVariant::String); + item = addItemInfo(group, "mountPoint", i18n("Mount Point"), TQVariant::String); + item = addItemInfo(group, "deviceNode", i18n("Device Node"), TQVariant::String); group = addGroupInfo(info, "mediumSummary", i18n("Medium Summary")); - item = addItemInfo(group, "percent", i18n("Usage"), QVariant::String); + item = addItemInfo(group, "percent", i18n("Usage"), TQVariant::String); - item = addItemInfo( group, "thumbnail", i18n("Bar Graph"), QVariant::Image ); + item = addItemInfo( group, "thumbnail", i18n("Bar Graph"), TQVariant::Image ); setHint( item, KFileMimeTypeInfo::Thumbnail ); } diff --git a/kioslave/media/kfile-plugin/kfilemediaplugin.h b/kioslave/media/kfile-plugin/kfilemediaplugin.h index 666f75df3..7799ffc3d 100644 --- a/kioslave/media/kfile-plugin/kfilemediaplugin.h +++ b/kioslave/media/kfile-plugin/kfilemediaplugin.h @@ -30,8 +30,8 @@ class KFileMediaPlugin : public KFilePlugin { Q_OBJECT public: - KFileMediaPlugin(QObject *parent, const char *name, - const QStringList &args); + KFileMediaPlugin(TQObject *parent, const char *name, + const TQStringList &args); bool readInfo(KFileMetaInfo &info, uint what = KFileMetaInfo::Fastest); |