summaryrefslogtreecommitdiffstats
path: root/xparts/src/kde
diff options
context:
space:
mode:
Diffstat (limited to 'xparts/src/kde')
-rw-r--r--xparts/src/kde/kbrowsersignals.cpp6
-rw-r--r--xparts/src/kde/kbrowsersignals.h4
-rw-r--r--xparts/src/kde/xparthost_kpart.cpp36
-rw-r--r--xparts/src/kde/xparthost_kpart.h12
4 files changed, 29 insertions, 29 deletions
diff --git a/xparts/src/kde/kbrowsersignals.cpp b/xparts/src/kde/kbrowsersignals.cpp
index f96655f0..18c58362 100644
--- a/xparts/src/kde/kbrowsersignals.cpp
+++ b/xparts/src/kde/kbrowsersignals.cpp
@@ -17,13 +17,13 @@ KBrowserSignals::~KBrowserSignals()
delete ext;
}
-void KBrowserSignals::openURLRequest( const QCString &url)
+void KBrowserSignals::openURLRequest( const TQCString &url)
{
- KURL u = QString(url);
+ KURL u = TQString(url);
emit KParts::BrowserExtension::openURLRequest(u);
}
-void KBrowserSignals::createNewWindow( const QCString &url )
+void KBrowserSignals::createNewWindow( const TQCString &url )
{
}
diff --git a/xparts/src/kde/kbrowsersignals.h b/xparts/src/kde/kbrowsersignals.h
index dab8f208..3bd29a7f 100644
--- a/xparts/src/kde/kbrowsersignals.h
+++ b/xparts/src/kde/kbrowsersignals.h
@@ -16,8 +16,8 @@ public:
virtual ~KBrowserSignals();
- virtual ASYNC openURLRequest( const QCString &url);
- virtual ASYNC createNewWindow( const QCString &url );
+ virtual ASYNC openURLRequest( const TQCString &url);
+ virtual ASYNC createNewWindow( const TQCString &url );
protected:
XPartHost_KPart *part;
diff --git a/xparts/src/kde/xparthost_kpart.cpp b/xparts/src/kde/xparthost_kpart.cpp
index c88e0c99..77def3ff 100644
--- a/xparts/src/kde/xparthost_kpart.cpp
+++ b/xparts/src/kde/xparthost_kpart.cpp
@@ -9,13 +9,13 @@
#include <qxembed.h>
-#include <qdom.h>
+#include <tqdom.h>
#include <kaction.h>
#include <kdebug.h>
-XPartHost_KPart::XPartHost_KPart( QWidget *parentWidget, const char *widgetName,
- QObject *parent, const char *name )
+XPartHost_KPart::XPartHost_KPart( TQWidget *parentWidget, const char *widgetName,
+ TQObject *parent, const char *name )
: KParts::ReadOnlyPart( parent, name ),
XPartHost("parthost")
{
@@ -57,32 +57,32 @@ DCOPRef XPartHost_KPart::registerXPart( const DCOPRef &part )
}
-void XPartHost_KPart::createActions( const QCString &xmlActions )
+void XPartHost_KPart::createActions( const TQCString &xmlActions )
{
qDebug("--> createActions");
// creates a set of actions and adds them to the actionCollection
- QDomDocument d;
+ TQDomDocument d;
d.setContent( xmlActions );
- QDomElement docElem = d.documentElement();
+ TQDomElement docElem = d.documentElement();
kdDebug() << "docElement is " << docElem.tagName() << endl;
- QDomNode n = docElem.firstChild();
+ TQDomNode n = docElem.firstChild();
while( !n.isNull() ) {
- QDomElement e = n.toElement();
+ TQDomElement e = n.toElement();
if( !e.isNull() ) {
if ( e.tagName() == "Action") {
- QString name = e.attribute("name");
- QString type = e.attribute("type");
+ TQString name = e.attribute("name");
+ TQString type = e.attribute("type");
if(type.isEmpty())
- new KAction( name, 0, this, SLOT( actionActivated() ), actionCollection(), name.latin1() );
+ new KAction( name, 0, this, TQT_SLOT( actionActivated() ), actionCollection(), name.latin1() );
else if( type == "toggle" )
- new KToggleAction( name, 0, this, SLOT( actionActivated() ), actionCollection(), name.latin1() );
+ new KToggleAction( name, 0, this, TQT_SLOT( actionActivated() ), actionCollection(), name.latin1() );
kdDebug() << "action=" << name << " type=" << type << endl;
} else if ( e.tagName() == "XMLFile" ) {
- QString location = e.attribute("location");
+ TQString location = e.attribute("location");
setXMLFile(location);
}
}
@@ -92,12 +92,12 @@ void XPartHost_KPart::createActions( const QCString &xmlActions )
}
-void XPartHost_KPart::setWindowCaption( const QString &caption )
+void XPartHost_KPart::setWindowCaption( const TQString &caption )
{
emit KParts::ReadOnlyPart::setWindowCaption( caption );
}
-void XPartHost_KPart::setStatusBarText( const QString &text )
+void XPartHost_KPart::setStatusBarText( const TQString &text )
{
emit KParts::ReadOnlyPart::setStatusBarText( text );
}
@@ -112,7 +112,7 @@ void XPartHost_KPart::completed()
emit KParts::ReadOnlyPart::completed();
}
-void XPartHost_KPart::canceled( const QString &errMsg )
+void XPartHost_KPart::canceled( const TQString &errMsg )
{
emit KParts::ReadOnlyPart::canceled( errMsg );
}
@@ -131,12 +131,12 @@ bool XPartHost_KPart::closeURL()
void XPartHost_KPart::actionActivated()
{
- const QObject *o = sender();
+ const TQObject *o = sender();
if( !o->inherits("KAction") ) return;
const KAction *action = static_cast<const KAction *>(o);
- QString name = action->text();
+ TQString name = action->text();
int state = 0;
if(action->inherits("KToggleAction")) {
diff --git a/xparts/src/kde/xparthost_kpart.h b/xparts/src/kde/xparthost_kpart.h
index 5a12dec0..527178d2 100644
--- a/xparts/src/kde/xparthost_kpart.h
+++ b/xparts/src/kde/xparthost_kpart.h
@@ -21,8 +21,8 @@ class XPartHost_KPart : public KParts::ReadOnlyPart, public XPartHost
{
Q_OBJECT
public:
- XPartHost_KPart( QWidget *parentWidget, const char *widgetName,
- QObject *parent, const char *name );
+ XPartHost_KPart( TQWidget *parentWidget, const char *widgetName,
+ TQObject *parent, const char *name );
virtual ~XPartHost_KPart();
// DCOP stuff
@@ -36,18 +36,18 @@ public:
// KPart signals
/** Emitted by the XPart, to be transfered to the KPart host */
- virtual ASYNC createActions( const QCString &xmlActions );
+ virtual ASYNC createActions( const TQCString &xmlActions );
/** Emitted by the XPart, to be transfered to the KPart host */
- virtual ASYNC setWindowCaption( const QString &caption );
+ virtual ASYNC setWindowCaption( const TQString &caption );
/** Emitted by the XPart, to be transfered to the KPart host */
- virtual ASYNC setStatusBarText( const QString &text );
+ virtual ASYNC setStatusBarText( const TQString &text );
/** Emitted by the XPart, to be transfered to the KPart host */
virtual ASYNC started();
/** Emitted by the XPart, to be transfered to the KPart host */
virtual ASYNC completed();
/** Emitted by the XPart, to be transfered to the KPart host */
- virtual ASYNC canceled( const QString &errMsg );
+ virtual ASYNC canceled( const TQString &errMsg );
// reimplemented from KReadOnlyPart
/** function called by the KPart host to be forwarded to the XPart */