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 --- libkdepim/embeddedurlpage.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'libkdepim/embeddedurlpage.cpp') diff --git a/libkdepim/embeddedurlpage.cpp b/libkdepim/embeddedurlpage.cpp index 1a48b8666..d01205742 100644 --- a/libkdepim/embeddedurlpage.cpp +++ b/libkdepim/embeddedurlpage.cpp @@ -27,23 +27,23 @@ #include #include #include -#include -#include +#include +#include using namespace KPIM; -EmbeddedURLPage::EmbeddedURLPage( const QString &url, const QString &mimetype, - QWidget *parent, const char *name ) - : QWidget( parent, name ), mUri(url), mMimeType( mimetype ), mPart( 0 ) +EmbeddedURLPage::EmbeddedURLPage( const TQString &url, const TQString &mimetype, + TQWidget *parent, const char *name ) + : TQWidget( parent, name ), mUri(url), mMimeType( mimetype ), mPart( 0 ) { initGUI( url, mimetype ); } -void EmbeddedURLPage::initGUI( const QString &url, const QString &/*mimetype*/ ) +void EmbeddedURLPage::initGUI( const TQString &url, const TQString &/*mimetype*/ ) { - QVBoxLayout *layout = new QVBoxLayout( this ); + TQVBoxLayout *layout = new TQVBoxLayout( this ); layout->setAutoAdd( true ); - new QLabel( i18n("Showing URL %1").arg( url ), this ); + new TQLabel( i18n("Showing URL %1").arg( url ), this ); } void EmbeddedURLPage::loadContents() @@ -51,20 +51,20 @@ void EmbeddedURLPage::loadContents() if ( !mPart ) { if ( mMimeType.isEmpty() || mUri.isEmpty() ) return; - QString mimetype = mMimeType; + TQString mimetype = mMimeType; if ( mimetype == "auto" ) mimetype == KMimeType::findByURL( mUri )->name(); // "this" is both the parent widget and the parent object - mPart = KParts::ComponentFactory::createPartInstanceFromQuery( mimetype, QString::null, this, 0, this, 0 ); + mPart = KParts::ComponentFactory::createPartInstanceFromQuery( mimetype, TQString::null, this, 0, this, 0 ); if ( mPart ) { mPart->openURL( mUri ); mPart->widget()->show(); } //void KParts::BrowserExtension::openURLRequestDelayed( const KURL &url, const KParts::URLArgs &args = KParts::URLArgs() ) KParts::BrowserExtension* be = KParts::BrowserExtension::childObject( mPart ); - connect( be, SIGNAL( openURLRequestDelayed( const KURL &, const KParts::URLArgs & ) ), -// mPart, SLOT( openURL( const KURL & ) ) ); - this, SIGNAL( openURL( const KURL & ) ) ); + connect( be, TQT_SIGNAL( openURLRequestDelayed( const KURL &, const KParts::URLArgs & ) ), +// mPart, TQT_SLOT( openURL( const KURL & ) ) ); + this, TQT_SIGNAL( openURL( const KURL & ) ) ); } } -- cgit v1.2.1