summaryrefslogtreecommitdiffstats
path: root/tdeui/kxmlguiclient.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:13:01 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:13:01 -0600
commitdeac2ca49faed824fe83066080714eb6d653615b (patch)
tree8b5bf97c5acaaf5285985b87fa76dbea0f35e4fa /tdeui/kxmlguiclient.cpp
parent0c9d97065a3d6ceb12d687555a1a33d90db96238 (diff)
downloadtdelibs-deac2ca49faed824fe83066080714eb6d653615b.tar.gz
tdelibs-deac2ca49faed824fe83066080714eb6d653615b.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'tdeui/kxmlguiclient.cpp')
-rw-r--r--tdeui/kxmlguiclient.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/tdeui/kxmlguiclient.cpp b/tdeui/kxmlguiclient.cpp
index da22e83fb..853a9ee52 100644
--- a/tdeui/kxmlguiclient.cpp
+++ b/tdeui/kxmlguiclient.cpp
@@ -53,7 +53,7 @@ public:
TDEInstance *m_instance;
TQDomDocument m_doc;
- KActionCollection *m_actionCollection;
+ TDEActionCollection *m_actionCollection;
TQDomDocument m_buildDocument;
TQGuardedPtr<KXMLGUIFactory> m_factory;
KXMLGUIClient *m_parent;
@@ -90,9 +90,9 @@ KXMLGUIClient::~KXMLGUIClient()
delete d;
}
-KAction *KXMLGUIClient::action( const char *name ) const
+TDEAction *KXMLGUIClient::action( const char *name ) const
{
- KAction* act = actionCollection()->action( name );
+ TDEAction* act = actionCollection()->action( name );
if ( !act ) {
TQPtrListIterator<KXMLGUIClient> childIt( d->m_children );
for (; childIt.current(); ++childIt ) {
@@ -104,17 +104,17 @@ KAction *KXMLGUIClient::action( const char *name ) const
return act;
}
-KActionCollection *KXMLGUIClient::actionCollection() const
+TDEActionCollection *KXMLGUIClient::actionCollection() const
{
if ( !d->m_actionCollection )
{
- d->m_actionCollection = new KActionCollection(
- "KXMLGUIClient-KActionCollection", this );
+ d->m_actionCollection = new TDEActionCollection(
+ "KXMLGUIClient-TDEActionCollection", this );
}
return d->m_actionCollection;
}
-KAction *KXMLGUIClient::action( const TQDomElement &element ) const
+TDEAction *KXMLGUIClient::action( const TQDomElement &element ) const
{
static const TQString &attrName = TDEGlobal::staticQString( "name" );
return actionCollection()->action( element.attribute( attrName ).latin1() );
@@ -248,7 +248,7 @@ void KXMLGUIClient::setDOMDocument( const TQDomDocument &document, bool merge )
setXMLGUIBuildDocument( TQDomDocument() );
}
-bool KXMLGUIClient::mergeXML( TQDomElement &base, const TQDomElement &additive, KActionCollection *actionCollection )
+bool KXMLGUIClient::mergeXML( TQDomElement &base, const TQDomElement &additive, TDEActionCollection *actionCollection )
{
static const TQString &tagAction = TDEGlobal::staticQString( "Action" );
static const TQString &tagMerge = TDEGlobal::staticQString( "Merge" );
@@ -292,7 +292,7 @@ bool KXMLGUIClient::mergeXML( TQDomElement &base, const TQDomElement &additive,
{
TQCString name = e.attribute( attrName ).utf8(); // WABA
if ( !actionCollection->action( name.data() ) ||
- (kapp && !kapp->authorizeKAction(name)))
+ (kapp && !kapp->authorizeTDEAction(name)))
{
// remove this child as we aren't using it
base.removeChild( e );
@@ -602,7 +602,7 @@ KXMLGUIBuilder *KXMLGUIClient::clientBuilder() const
return d->m_builder;
}
-void KXMLGUIClient::plugActionList( const TQString &name, const TQPtrList<KAction> &actionList )
+void KXMLGUIClient::plugActionList( const TQString &name, const TQPtrList<TDEAction> &actionList )
{
if ( !d->m_factory )
return;
@@ -908,7 +908,7 @@ void KXMLGUIClient::stateChanged(const TQString &newstate, KXMLGUIClient::Revers
for ( TQStringList::Iterator it = stateChange.actionsToEnable.begin();
it != stateChange.actionsToEnable.end(); ++it ) {
- KAction *action = actionCollection()->action((*it).latin1());
+ TDEAction *action = actionCollection()->action((*it).latin1());
if (action) action->setEnabled(setTrue);
}
@@ -917,7 +917,7 @@ void KXMLGUIClient::stateChanged(const TQString &newstate, KXMLGUIClient::Revers
for ( TQStringList::Iterator it = stateChange.actionsToDisable.begin();
it != stateChange.actionsToDisable.end(); ++it ) {
- KAction *action = actionCollection()->action((*it).latin1());
+ TDEAction *action = actionCollection()->action((*it).latin1());
if (action) action->setEnabled(setFalse);
}