diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:12:07 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:12:07 -0600 |
commit | 3ed7c09d22a5f310a97516f5bab6068e5688a813 (patch) | |
tree | 23ba07d28f7fad17824db1fc40e9cf1ad4942480 /xparts/src/kde | |
parent | 3a8473ba2620b85b165b5a2fa1a6b153f5945800 (diff) | |
download | tdebindings-3ed7c09d22a5f310a97516f5bab6068e5688a813.tar.gz tdebindings-3ed7c09d22a5f310a97516f5bab6068e5688a813.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'xparts/src/kde')
-rw-r--r-- | xparts/src/kde/xparthost_kpart.cpp | 12 |
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(); } |