From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kmobile/kmobileitem.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'kmobile/kmobileitem.cpp') diff --git a/kmobile/kmobileitem.cpp b/kmobile/kmobileitem.cpp index 0cf61fec7..0e4705c5b 100644 --- a/kmobile/kmobileitem.cpp +++ b/kmobile/kmobileitem.cpp @@ -17,7 +17,7 @@ */ -#include +#include #include #include @@ -29,8 +29,8 @@ #define PRINT_DEBUG kdDebug() << "KMobileItem: " -KMobileItem::KMobileItem(QIconView *parent, KConfig *_config, KService::Ptr service) - : QObject(parent), QIconViewItem(parent), m_dev(0L) +KMobileItem::KMobileItem(TQIconView *parent, KConfig *_config, KService::Ptr service) + : TQObject(parent), TQIconViewItem(parent), m_dev(0L) { config = _config; @@ -38,7 +38,7 @@ KMobileItem::KMobileItem(QIconView *parent, KConfig *_config, KService::Ptr serv if (service) { setText(service->name()); m_deviceDesktopFile = service->desktopEntryName(); - m_deviceConfigFile = QString("kmobile_%1_rc").arg(text()); + m_deviceConfigFile = TQString("kmobile_%1_rc").arg(text()); m_deviceConfigFile = m_deviceConfigFile.replace(' ', ""); m_iconName = service->icon(); }; @@ -51,8 +51,8 @@ KMobileItem::KMobileItem(QIconView *parent, KConfig *_config, KService::Ptr serv } /* restore this item from the config file */ -KMobileItem::KMobileItem(QIconView *parent, KConfig *_config, int reload_index) - : QObject(parent), QIconViewItem(parent), m_dev(0L) +KMobileItem::KMobileItem(TQIconView *parent, KConfig *_config, int reload_index) + : TQObject(parent), TQIconViewItem(parent), m_dev(0L) { config = _config; @@ -96,19 +96,19 @@ bool KMobileItem::configLoad(int idx) return true; } -QPixmap KMobileItem::getIcon() const +TQPixmap KMobileItem::getIcon() const { return KGlobal::instance()->iconLoader()->loadIcon(m_iconName, KIcon::Desktop ); } -QString KMobileItem::config_SectionName(int idx) const +TQString KMobileItem::config_SectionName(int idx) const { if (idx == -1) idx = index(); - return QString("MobileDevice_%1").arg(idx); + return TQString("MobileDevice_%1").arg(idx); } /* this MimeType is used by konqueror */ -QString KMobileItem::getKonquMimeType() const +TQString KMobileItem::getKonquMimeType() const { return KMOBILE_MIMETYPE_DEVICE_KONQUEROR(text()); } @@ -117,13 +117,13 @@ QString KMobileItem::getKonquMimeType() const void KMobileItem::writeKonquMimeFile() const { // strip path and file extension of icon name - QString icon = m_iconName; + TQString icon = m_iconName; int p = icon.findRev('/'); if (p>=0) icon = icon.mid(p+1); p = icon.find('.'); if (p>=0) icon = icon.left(p); - QString comment; + TQString comment; if (m_dev) comment = m_dev->deviceClassName(); if (comment.isEmpty()) @@ -161,7 +161,7 @@ KService::Ptr KMobileItem::getServicePtr() const if (ptr->desktopEntryName() == m_deviceDesktopFile) return ptr; } - PRINT_DEBUG << QString("Service for library '%1' not found in KService list\n") + PRINT_DEBUG << TQString("Service for library '%1' not found in KService list\n") .arg(m_deviceDesktopFile); return 0L; } @@ -178,14 +178,14 @@ bool KMobileItem::driverAvailable() if (!ptr) return false; - PRINT_DEBUG << QString("Loading library %1\n").arg(ptr->library()); + PRINT_DEBUG << TQString("Loading library %1\n").arg(ptr->library()); KLibFactory *factory = KLibLoader::self()->factory( ptr->library().utf8() ); if (!factory) return false; m_dev = static_cast(factory->create(this, ptr->name().utf8(), - "KMobileDevice", QStringList(m_deviceConfigFile))); - PRINT_DEBUG << QString("Got KMobileDevice object at 0x%1, configfile=%2\n") + "KMobileDevice", TQStringList(m_deviceConfigFile))); + PRINT_DEBUG << TQString("Got KMobileDevice object at 0x%1, configfile=%2\n") .arg((unsigned long)m_dev, 0, 16).arg(m_deviceConfigFile); return (m_dev != 0); -- cgit v1.2.1