summaryrefslogtreecommitdiffstats
path: root/xparts/src/kde/xparthost_kpart.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xparts/src/kde/xparthost_kpart.cpp')
-rw-r--r--xparts/src/kde/xparthost_kpart.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/xparts/src/kde/xparthost_kpart.cpp b/xparts/src/kde/xparthost_kpart.cpp
index 807ada77..0ad0e952 100644
--- a/xparts/src/kde/xparthost_kpart.cpp
+++ b/xparts/src/kde/xparthost_kpart.cpp
@@ -14,14 +14,14 @@
#include <kdebug.h>
-XPartHost_KPart::XPartHost_KPart( TQWidget *parentWidget, const char *widgetName,
- TQObject *parent, const char *name )
+XPartHost_KPart::XPartHost_KPart( TTQWidget *parentWidget, const char *widgetName,
+ TTQObject *parent, const char *name )
: KParts::ReadOnlyPart( parent, name ),
XPartHost("parthost")
{
m_stub = 0;
be = 0;
- embed = new QXEmbed(parentWidget, widgetName);
+ embed = new TQXEmbed(parentWidget, widgetName);
setWidget(embed);
}
@@ -57,24 +57,24 @@ DCOPRef XPartHost_KPart::registerXPart( const DCOPRef &part )
}
-void XPartHost_KPart::createActions( const TQCString &xmlActions )
+void XPartHost_KPart::createActions( const TTQCString &xmlActions )
{
qDebug("--> createActions");
// creates a set of actions and adds them to the actionCollection
- TQDomDocument d;
+ TTQDomDocument d;
d.setContent( xmlActions );
- TQDomElement docElem = d.documentElement();
+ TTQDomElement docElem = d.documentElement();
kdDebug() << "docElement is " << docElem.tagName() << endl;
- TQDomNode n = docElem.firstChild();
+ TTQDomNode n = docElem.firstChild();
while( !n.isNull() ) {
- TQDomElement e = n.toElement();
+ TTQDomElement e = n.toElement();
if( !e.isNull() ) {
if ( e.tagName() == "Action") {
- TQString name = e.attribute("name");
- TQString type = e.attribute("type");
+ TTQString name = e.attribute("name");
+ TTQString type = e.attribute("type");
if(type.isEmpty())
new KAction( name, 0, this, TQT_SLOT( actionActivated() ), actionCollection(), name.latin1() );
@@ -82,7 +82,7 @@ void XPartHost_KPart::createActions( const TQCString &xmlActions )
new KToggleAction( name, 0, this, TQT_SLOT( actionActivated() ), actionCollection(), name.latin1() );
kdDebug() << "action=" << name << " type=" << type << endl;
} else if ( e.tagName() == "XMLFile" ) {
- TQString location = e.attribute("location");
+ TTQString location = e.attribute("location");
setXMLFile(location);
}
}
@@ -92,12 +92,12 @@ void XPartHost_KPart::createActions( const TQCString &xmlActions )
}
-void XPartHost_KPart::setWindowCaption( const TQString &caption )
+void XPartHost_KPart::setWindowCaption( const TTQString &caption )
{
emit KParts::ReadOnlyPart::setWindowCaption( caption );
}
-void XPartHost_KPart::setStatusBarText( const TQString &text )
+void XPartHost_KPart::setStatusBarText( const TTQString &text )
{
emit KParts::ReadOnlyPart::setStatusBarText( text );
}
@@ -112,7 +112,7 @@ void XPartHost_KPart::completed()
emit KParts::ReadOnlyPart::completed();
}
-void XPartHost_KPart::canceled( const TQString &errMsg )
+void XPartHost_KPart::canceled( const TTQString &errMsg )
{
emit KParts::ReadOnlyPart::canceled( errMsg );
}
@@ -131,12 +131,12 @@ bool XPartHost_KPart::closeURL()
void XPartHost_KPart::actionActivated()
{
- const TQObject *o = sender();
+ const TTQObject *o = sender();
if( !o->inherits("KAction") ) return;
const KAction *action = static_cast<const KAction *>(o);
- TQString name = action->text();
+ TTQString name = action->text();
int state = 0;
if(action->inherits("KToggleAction")) {