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.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/xparts/src/kde/xparthost_kpart.cpp b/xparts/src/kde/xparthost_kpart.cpp
index 8610c4c5..9195a278 100644
--- a/xparts/src/kde/xparthost_kpart.cpp
+++ b/xparts/src/kde/xparthost_kpart.cpp
@@ -77,9 +77,9 @@ void XPartHost_KPart::createActions( const TQCString &xmlActions )
TQString type = e.attribute("type");
if(type.isEmpty())
- new KAction( name, 0, this, TQT_SLOT( actionActivated() ), actionCollection(), name.latin1() );
+ new TDEAction( name, 0, this, TQT_SLOT( actionActivated() ), actionCollection(), name.latin1() );
else if( type == "toggle" )
- new KToggleAction( name, 0, this, TQT_SLOT( actionActivated() ), actionCollection(), name.latin1() );
+ new TDEToggleAction( 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");
@@ -133,14 +133,14 @@ void XPartHost_KPart::actionActivated()
{
const TQObject *o = sender();
- if( !o->inherits("KAction") ) return;
+ if( !o->inherits("TDEAction") ) return;
- const KAction *action = static_cast<const KAction *>(o);
+ const TDEAction *action = static_cast<const TDEAction *>(o);
TQString name = action->text();
int state = 0;
- if(action->inherits("KToggleAction")) {
- const KToggleAction *t = static_cast<const KToggleAction *>(action);
+ if(action->inherits("TDEToggleAction")) {
+ const TDEToggleAction *t = static_cast<const TDEToggleAction *>(action);
state = t->isChecked();
}