summaryrefslogtreecommitdiffstats
path: root/libkonq/konq_xmlguiclient.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libkonq/konq_xmlguiclient.cc')
-rw-r--r--libkonq/konq_xmlguiclient.cc36
1 files changed, 18 insertions, 18 deletions
diff --git a/libkonq/konq_xmlguiclient.cc b/libkonq/konq_xmlguiclient.cc
index 7737acd7c..5561ced8e 100644
--- a/libkonq/konq_xmlguiclient.cc
+++ b/libkonq/konq_xmlguiclient.cc
@@ -27,7 +27,7 @@ class KonqXMLGUIClient::Private
{
public:
Private() : attrName( "name" ), separatorPending( false ), hasAction( false ) {}
- QString attrName;
+ TQString attrName;
bool separatorPending;
bool hasAction;
};
@@ -46,9 +46,9 @@ KonqXMLGUIClient::KonqXMLGUIClient( KXMLGUIClient *parent ) : KXMLGUIClient(pare
void KonqXMLGUIClient::prepareXMLGUIStuff()
{
- m_doc = QDomDocument( "kpartgui" );
+ m_doc = TQDomDocument( "kpartgui" );
- QDomElement root = m_doc.createElement( "kpartgui" );
+ TQDomElement root = m_doc.createElement( "kpartgui" );
m_doc.appendChild( root );
root.setAttribute( d->attrName, "popupmenu" );
@@ -60,45 +60,45 @@ void KonqXMLGUIClient::prepareXMLGUIStuff()
m_factory = new KXMLGUIFactory( m_builder ); */
}
-QDomElement KonqXMLGUIClient::DomElement() const
+TQDomElement KonqXMLGUIClient::DomElement() const
{
return m_menuElement;
}
-QDomDocument KonqXMLGUIClient::domDocument() const
+TQDomDocument KonqXMLGUIClient::domDocument() const
{
return m_doc;
}
-void KonqXMLGUIClient::addAction( KAction *act, const QDomElement &menu )
+void KonqXMLGUIClient::addAction( KAction *act, const TQDomElement &menu )
{
addAction( act->name(), menu );
}
-void KonqXMLGUIClient::addAction( const char *name, const QDomElement &menu )
+void KonqXMLGUIClient::addAction( const char *name, const TQDomElement &menu )
{
- static const QString& tagAction = KGlobal::staticQString( "action" );
+ static const TQString& tagAction = KGlobal::staticQString( "action" );
if (!kapp->authorizeKAction(name))
return;
handlePendingSeparator();
- QDomElement parent = menu;
+ TQDomElement parent = menu;
if ( parent.isNull() ) {
parent = m_menuElement;
}
- QDomElement e = m_doc.createElement( tagAction );
+ TQDomElement e = m_doc.createElement( tagAction );
parent.appendChild( e );
e.setAttribute( d->attrName, name );
d->hasAction = true;
}
-void KonqXMLGUIClient::addSeparator( const QDomElement &menu )
+void KonqXMLGUIClient::addSeparator( const TQDomElement &menu )
{
- static const QString& tagSeparator = KGlobal::staticQString( "separator" );
+ static const TQString& tagSeparator = KGlobal::staticQString( "separator" );
- QDomElement parent = menu;
+ TQDomElement parent = menu;
if ( parent.isNull() ) {
parent = m_menuElement;
}
@@ -110,24 +110,24 @@ void KonqXMLGUIClient::addSeparator( const QDomElement &menu )
//void KonqXMLGUIClient::addWeakSeparator()
//{
-// static const QString& tagWeakSeparator = KGlobal::staticQString( "weakSeparator" );
+// static const TQString& tagWeakSeparator = KGlobal::staticQString( "weakSeparator" );
// m_menuElement.appendChild( m_doc.createElement( tagWeakSeparator ) );
//}
-void KonqXMLGUIClient::addMerge( const QString &name )
+void KonqXMLGUIClient::addMerge( const TQString &name )
{
// can't call handlePendingSeparator. Merge could be empty
// (testcase: RMB in embedded katepart)
- QDomElement merge = m_doc.createElement( "merge" );
+ TQDomElement merge = m_doc.createElement( "merge" );
m_menuElement.appendChild( merge );
if ( !name.isEmpty() )
merge.setAttribute( d->attrName, name );
}
-void KonqXMLGUIClient::addGroup( const QString &grp )
+void KonqXMLGUIClient::addGroup( const TQString &grp )
{
handlePendingSeparator();
- QDomElement group = m_doc.createElement( "definegroup" );
+ TQDomElement group = m_doc.createElement( "definegroup" );
m_menuElement.appendChild( group );
group.setAttribute( d->attrName, grp );
}