summaryrefslogtreecommitdiffstats
path: root/quanta/treeviews/structtreetag.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/treeviews/structtreetag.cpp')
-rw-r--r--quanta/treeviews/structtreetag.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/quanta/treeviews/structtreetag.cpp b/quanta/treeviews/structtreetag.cpp
index 2742bcea..596143d7 100644
--- a/quanta/treeviews/structtreetag.cpp
+++ b/quanta/treeviews/structtreetag.cpp
@@ -15,7 +15,7 @@
* *
***************************************************************************/
//qt include
-#include <qregexp.h>
+#include <tqregexp.h>
// KDE includes
#include <kiconloader.h>
@@ -31,7 +31,7 @@
#include "document.h"
#include "resource.h"
-StructTreeTag::StructTreeTag(QListView *parent, QString a_title)
+StructTreeTag::StructTreeTag(TQListView *parent, TQString a_title)
: KListViewItem(parent, a_title)
{
node = 0L;
@@ -40,20 +40,20 @@ StructTreeTag::StructTreeTag(QListView *parent, QString a_title)
parentTree = static_cast<StructTreeView*>(parent);
}
-StructTreeTag::StructTreeTag(StructTreeTag *parent, Node *a_node, const QString a_title,
- QListViewItem *after )
+StructTreeTag::StructTreeTag(StructTreeTag *parent, Node *a_node, const TQString a_title,
+ TQListViewItem *after )
: KListViewItem(parent, after, a_title)
{
parentTree = parent->parentTree;
hasOpenFileMenu = false;
groupTag = 0L;
- static const QString space = " ";
- static const QRegExp nbspRx("&nbsp;|\\n");
+ static const TQString space = " ";
+ static const TQRegExp nbspRx("&nbsp;|\\n");
node = a_node;
if (node)
{
Tag *tag = node->tag;
- QString title = tag->name.lower();
+ TQString title = tag->name.lower();
if (a_title.isEmpty())
{
switch (tag->type)
@@ -108,17 +108,17 @@ StructTreeTag::StructTreeTag(StructTreeTag *parent, Node *a_node, const QString
QTag *parentQTag = 0L;
if (node->parent)
parentQTag = QuantaCommon::tagFromDTD(node->parent);
- QString qTagName = node->tag->dtd()->caseSensitive ? node->tag->name : node->tag->name.upper();
+ TQString qTagName = node->tag->dtd()->caseSensitive ? node->tag->name : node->tag->name.upper();
int line, col;
node->tag->beginPos(line, col);
if (parentQTag && !parentQTag->childTags.contains(qTagName) &&
!parentQTag->childTags.isEmpty())
{
node->tag->write()->setErrorMark(line);
- QString parentTagName = node->tag->dtd()->caseSensitive ? node->parent->tag->name : node->parent->tag->name.upper();
+ TQString parentTagName = node->tag->dtd()->caseSensitive ? node->parent->tag->name : node->parent->tag->name.upper();
parentTree->showMessage(i18n("Line %1: %2 is not a possible child of %3.\n").arg(line + 1).arg(qTagName).arg(parentTagName));
}
- QString nextTagName;
+ TQString nextTagName;
if (node->next)
{
nextTagName = node->tag->dtd()->caseSensitive ? node->next->tag->name : node->next->tag->name.upper();
@@ -175,8 +175,8 @@ StructTreeTag::StructTreeTag(StructTreeTag *parent, Node *a_node, const QString
{
int line, col;
node->tag->beginPos(line, col);
- QString qTagName = node->tag->dtd()->caseSensitive ? node->tag->name : node->tag->name.upper();
- QString qPrevTagName;
+ TQString qTagName = node->tag->dtd()->caseSensitive ? node->tag->name : node->tag->name.upper();
+ TQString qPrevTagName;
if (node->prev)
qPrevTagName = node->tag->dtd()->caseSensitive ? node->prev->tag->name : node->prev->tag->name.upper();
if (!node->prev || qTagName != "/" + qPrevTagName)
@@ -201,7 +201,7 @@ StructTreeTag::StructTreeTag(StructTreeTag *parent, Node *a_node, const QString
}
}
-StructTreeTag::StructTreeTag(StructTreeTag *parent, QString a_title )
+StructTreeTag::StructTreeTag(StructTreeTag *parent, TQString a_title )
: KListViewItem(parent, a_title)
{
node = 0L;