From c663b6440964f6ac48027143ac9e63298991f9d0 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:33:34 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- konqueror/keditbookmarks/updater.cpp | 48 ++++++++++++++++++------------------ 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'konqueror/keditbookmarks/updater.cpp') diff --git a/konqueror/keditbookmarks/updater.cpp b/konqueror/keditbookmarks/updater.cpp index 34c884617..0d9a4cd11 100644 --- a/konqueror/keditbookmarks/updater.cpp +++ b/konqueror/keditbookmarks/updater.cpp @@ -18,7 +18,7 @@ Boston, MA 02110-1301, USA. */ -#include +#include #include "updater.h" @@ -36,7 +36,7 @@ #include #include -FavIconUpdater::FavIconUpdater(QObject *parent, const char *name) +FavIconUpdater::FavIconUpdater(TQObject *parent, const char *name) : KonqFavIconMgr(parent, name) { m_part = 0; m_webGrabber = 0; @@ -58,7 +58,7 @@ void FavIconUpdater::timerDone() { } void FavIconUpdater::downloadIcon(const KBookmark &bk) { - QString favicon = KonqFavIconMgr::iconForURL(bk.url().url()); + TQString favicon = KonqFavIconMgr::iconForURL(bk.url().url()); if (!favicon.isNull()) { // kdDebug() << "downloadIcon() - favicon" << favicon << endl; bk.internalElement().setAttribute("icon", favicon); @@ -90,17 +90,17 @@ void FavIconUpdater::downloadIconActual(const KBookmark &bk) { if (!m_part) { KParts::ReadOnlyPart *part = KParts::ComponentFactory - ::createPartInstanceFromQuery("text/html", QString::null); + ::createPartInstanceFromQuery("text/html", TQString::null); - part->setProperty("pluginsEnabled", QVariant(false, 1)); - part->setProperty("javaScriptEnabled", QVariant(false, 1)); - part->setProperty("javaEnabled", QVariant(false, 1)); - part->setProperty("autoloadImages", QVariant(false, 1)); + part->setProperty("pluginsEnabled", TQVariant(false, 1)); + part->setProperty("javaScriptEnabled", TQVariant(false, 1)); + part->setProperty("javaEnabled", TQVariant(false, 1)); + part->setProperty("autoloadImages", TQVariant(false, 1)); - connect(part, SIGNAL( canceled(const QString &) ), - this, SLOT( slotCompleted() )); - connect(part, SIGNAL( completed() ), - this, SLOT( slotCompleted() )); + connect(part, TQT_SIGNAL( canceled(const TQString &) ), + this, TQT_SLOT( slotCompleted() )); + connect(part, TQT_SIGNAL( completed() ), + this, TQT_SLOT( slotCompleted() )); KParts::BrowserExtension *ext = KParts::BrowserExtension::childObject(part); assert(ext); @@ -108,16 +108,16 @@ void FavIconUpdater::downloadIconActual(const KBookmark &bk) { m_browserIface = new FavIconBrowserInterface(this, "browseriface"); ext->setBrowserInterface(m_browserIface); - connect(ext, SIGNAL( setIconURL(const KURL &) ), - this, SLOT( setIconURL(const KURL &) )); + connect(ext, TQT_SIGNAL( setIconURL(const KURL &) ), + this, TQT_SLOT( setIconURL(const KURL &) )); m_part = part; } if (!m_timer) { // Timeout to stop the updating hanging - m_timer = new QTimer(this); - connect( m_timer, SIGNAL(timeout()), this, SLOT(timerDone()) ); + m_timer = new TQTimer(this); + connect( m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(timerDone()) ); } m_timer->start(15000,false); m_webGrabber = new FavIconWebGrabber(m_part, bk.url()); @@ -128,7 +128,7 @@ void FavIconUpdater::setIconURL(const KURL &iconURL) { setIconForURL(m_bk.url(), iconURL); } -void FavIconUpdater::notifyChange(bool isHost, QString hostOrURL, QString iconName) { +void FavIconUpdater::notifyChange(bool isHost, TQString hostOrURL, TQString iconName) { // kdDebug() << "FavIconUpdater::notifyChange()" << endl; Q_UNUSED(isHost); @@ -150,21 +150,21 @@ FavIconWebGrabber::FavIconWebGrabber(KParts::ReadOnlyPart *part, const KURL &url // the use of KIO rather than directly using KHTML is to allow silently abort on error KIO::Job *job = KIO::get(m_url, false, false); - job->addMetaData( QString("cookies"), QString("none") ); - connect(job, SIGNAL( result( KIO::Job *)), - this, SLOT( slotFinished(KIO::Job *) )); - connect(job, SIGNAL( mimetype( KIO::Job *, const QString &) ), - this, SLOT( slotMimetype(KIO::Job *, const QString &) )); + job->addMetaData( TQString("cookies"), TQString("none") ); + connect(job, TQT_SIGNAL( result( KIO::Job *)), + this, TQT_SLOT( slotFinished(KIO::Job *) )); + connect(job, TQT_SIGNAL( mimetype( KIO::Job *, const TQString &) ), + this, TQT_SLOT( slotMimetype(KIO::Job *, const TQString &) )); } -void FavIconWebGrabber::slotMimetype(KIO::Job *job, const QString & /*type*/) { +void FavIconWebGrabber::slotMimetype(KIO::Job *job, const TQString & /*type*/) { KIO::SimpleJob *sjob = static_cast(job); m_url = sjob->url(); // allow for redirection sjob->putOnHold(); // kdDebug() << "FavIconWebGrabber::slotMimetype " << m_url << "\n"; - // QString typeLocal = typeUncopied; // local copy + // TQString typeLocal = typeUncopied; // local copy // kdDebug() << "slotMimetype : " << typeLocal << endl; // TODO - what to do if typeLocal is not text/html ?? -- cgit v1.2.1