summaryrefslogtreecommitdiffstats
path: root/libkdepim/embeddedurlpage.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /libkdepim/embeddedurlpage.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkdepim/embeddedurlpage.cpp')
-rw-r--r--libkdepim/embeddedurlpage.cpp26
1 files changed, 13 insertions, 13 deletions
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 <kparts/part.h>
#include <kmimetype.h>
#include <klocale.h>
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
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<KParts::ReadOnlyPart>( mimetype, QString::null, this, 0, this, 0 );
+ mPart = KParts::ComponentFactory::createPartInstanceFromQuery<KParts::ReadOnlyPart>( 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 & ) ) );
}
}