summaryrefslogtreecommitdiffstats
path: root/quanta/dialogs/tagdialogs/tagattr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/dialogs/tagdialogs/tagattr.cpp')
-rw-r--r--quanta/dialogs/tagdialogs/tagattr.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/quanta/dialogs/tagdialogs/tagattr.cpp b/quanta/dialogs/tagdialogs/tagattr.cpp
index 772da4fb..251c4b8b 100644
--- a/quanta/dialogs/tagdialogs/tagattr.cpp
+++ b/quanta/dialogs/tagdialogs/tagattr.cpp
@@ -23,8 +23,8 @@
#include <klineedit.h>
//qt includes
-#include <qdom.h>
-#include <qtextstream.h>
+#include <tqdom.h>
+#include <tqtextstream.h>
//app includes
#include "tagattr.h"
@@ -33,35 +33,35 @@
#include "qtag.h"
#include "quantacommon.h"
-QString Attr::attrName() const
+TQString Attr::attrName() const
{
return name;
}
-Attr_list::Attr_list( QDomElement const& el, QWidget *w, QTag *dtdTag )
+Attr_list::Attr_list( TQDomElement const& el, TQWidget *w, QTag *dtdTag )
: Attr(el, w, dtdTag)
{
- combo = (QComboBox *)w;
+ combo = (TQComboBox *)w;
- QString source = el.attribute("source");
+ TQString source = el.attribute("source");
if (source == "dcop") //fill the list with a result of a DCOP call
{
- QString method = el.attribute("method");
- QString interface = el.attribute("interface", "QuantaIf");
- QString arguments = el.attribute("arguments");
+ TQString method = el.attribute("method");
+ TQString interface = el.attribute("interface", "QuantaIf");
+ TQString arguments = el.attribute("arguments");
arguments.replace("%tagname%", m_dtdTag->name());
DCOPReply reply = QuantaCommon::callDCOPMethod(interface, method, arguments);
if (reply.isValid())
{
- QStringList list = reply;
+ TQStringList list = reply;
combo->insertStringList(list);
}
}
- for ( QDomElement n = el.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
+ for ( TQDomElement n = el.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( n.tagName() == "items" ) {
- QDomElement item = n.firstChild().toElement();
+ TQDomElement item = n.firstChild().toElement();
while ( !item.isNull() ) {
combo->insertItem( item.text() );
item = item.nextSibling().toElement();
@@ -72,7 +72,7 @@ Attr_list::Attr_list( QDomElement const& el, QWidget *w, QTag *dtdTag )
setValue("");
}
-void Attr_list::setValue(const QString &value)
+void Attr_list::setValue(const TQString &value)
{
for ( int i=0; i<combo->count(); i++ )
@@ -87,11 +87,11 @@ void Attr_list::setValue(const QString &value)
}
-QDomNode findChild( QDomNode &parent, const QString &name )
+TQDomNode findChild( TQDomNode &parent, const TQString &name )
{
- for ( QDomNode n = parent.firstChild(); !n.isNull(); n = n.nextSibling() )
+ for ( TQDomNode n = parent.firstChild(); !n.isNull(); n = n.nextSibling() )
if ( n.nodeName() == name )
return n;
- return QDomNode();
+ return TQDomNode();
}