summaryrefslogtreecommitdiffstats
path: root/xparts/src/kde/xparthost_kpart.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 16:20:48 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 16:20:48 -0600
commite63beeb5bdb82987b1e00bc35178667786fbad48 (patch)
treeab77b6ac830b7944d5d1eb9ce8f81feb8fdab948 /xparts/src/kde/xparthost_kpart.cpp
parent67557a2b56c0678c22ab1b00c4fd0224c5e9ed99 (diff)
downloadtdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.tar.gz
tdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.zip
Fix incorrect conversion
Diffstat (limited to 'xparts/src/kde/xparthost_kpart.cpp')
-rw-r--r--xparts/src/kde/xparthost_kpart.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/xparts/src/kde/xparthost_kpart.cpp b/xparts/src/kde/xparthost_kpart.cpp
index 0ad0e952..cd9ca39e 100644
--- a/xparts/src/kde/xparthost_kpart.cpp
+++ b/xparts/src/kde/xparthost_kpart.cpp
@@ -14,8 +14,8 @@
#include <kdebug.h>
-XPartHost_KPart::XPartHost_KPart( TTQWidget *parentWidget, const char *widgetName,
- TTQObject *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,24 +57,24 @@ DCOPRef XPartHost_KPart::registerXPart( const DCOPRef &part )
}
-void XPartHost_KPart::createActions( const TTQCString &xmlActions )
+void XPartHost_KPart::createActions( const TQCString &xmlActions )
{
qDebug("--> createActions");
// creates a set of actions and adds them to the actionCollection
- TTQDomDocument d;
+ TQDomDocument d;
d.setContent( xmlActions );
- TTQDomElement docElem = d.documentElement();
+ TQDomElement docElem = d.documentElement();
kdDebug() << "docElement is " << docElem.tagName() << endl;
- TTQDomNode n = docElem.firstChild();
+ TQDomNode n = docElem.firstChild();
while( !n.isNull() ) {
- TTQDomElement e = n.toElement();
+ TQDomElement e = n.toElement();
if( !e.isNull() ) {
if ( e.tagName() == "Action") {
- TTQString name = e.attribute("name");
- TTQString type = e.attribute("type");
+ TQString name = e.attribute("name");
+ TQString 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 TTQCString &xmlActions )
new KToggleAction( name, 0, this, TQT_SLOT( actionActivated() ), actionCollection(), name.latin1() );
kdDebug() << "action=" << name << " type=" << type << endl;
} else if ( e.tagName() == "XMLFile" ) {
- TTQString location = e.attribute("location");
+ TQString location = e.attribute("location");
setXMLFile(location);
}
}
@@ -92,12 +92,12 @@ void XPartHost_KPart::createActions( const TTQCString &xmlActions )
}
-void XPartHost_KPart::setWindowCaption( const TTQString &caption )
+void XPartHost_KPart::setWindowCaption( const TQString &caption )
{
emit KParts::ReadOnlyPart::setWindowCaption( caption );
}
-void XPartHost_KPart::setStatusBarText( const TTQString &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 TTQString &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 TTQObject *o = sender();
+ const TQObject *o = sender();
if( !o->inherits("KAction") ) return;
const KAction *action = static_cast<const KAction *>(o);
- TTQString name = action->text();
+ TQString name = action->text();
int state = 0;
if(action->inherits("KToggleAction")) {