summaryrefslogtreecommitdiffstats
path: root/kate/xmltools/plugin_katexmltools.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kate/xmltools/plugin_katexmltools.cpp')
-rw-r--r--kate/xmltools/plugin_katexmltools.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kate/xmltools/plugin_katexmltools.cpp b/kate/xmltools/plugin_katexmltools.cpp
index fe5c9f4..b3eea59 100644
--- a/kate/xmltools/plugin_katexmltools.cpp
+++ b/kate/xmltools/plugin_katexmltools.cpp
@@ -282,9 +282,9 @@ void PluginKateXMLTools::keyEvent( int, int, const TQString &/*s*/ )
else if( leftCh == "<" )
{
kdDebug() << "*outside tag -> get elements" << endl;
- TQString tqparentElement = getParentElement( *kv, true );
- kdDebug() << "tqparent: " << tqparentElement << endl;
- allowed = m_docDtds[docNumber]->allowedElements(tqparentElement );
+ TQString parentElement = getParentElement( *kv, true );
+ kdDebug() << "tqparent: " << parentElement << endl;
+ allowed = m_docDtds[docNumber]->allowedElements(parentElement );
m_mode = elements;
}
// TODO: optionally close tqparent tag if not left=="/>"
@@ -555,11 +555,11 @@ void PluginKateXMLTools::slotInsertElement()
}
PseudoDTD *dtd = m_docDtds[kv->document()->documentNumber()];
- TQString tqparentElement = getParentElement( *kv, false );
+ TQString parentElement = getParentElement( *kv, false );
TQStringList allowed;
if( dtd )
- allowed = dtd->allowedElements(tqparentElement );
+ allowed = dtd->allowedElements(parentElement );
InsertElement *dialog = new InsertElement(
( TQWidget *)application()->activeMainWindow()->viewManager()->activeView(), "insertXml" );
@@ -616,11 +616,11 @@ void PluginKateXMLTools::slotCloseElement()
kdDebug() << "Warning: no Kate::View" << endl;
return;
}
- TQString tqparentElement = getParentElement( *kv, false );
+ TQString parentElement = getParentElement( *kv, false );
- //kdDebug() << "tqparentElement: '" << tqparentElement << "'" << endl;
- TQString closeTag = "</" + tqparentElement + ">";
- if( ! tqparentElement.isEmpty() )
+ //kdDebug() << "parentElement: '" << parentElement << "'" << endl;
+ TQString closeTag = "</" + parentElement + ">";
+ if( ! parentElement.isEmpty() )
kv->insertText( closeTag );
}