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.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/quanta/treeviews/structtreetag.cpp b/quanta/treeviews/structtreetag.cpp
index a0ac8baa..fbd41228 100644
--- a/quanta/treeviews/structtreetag.cpp
+++ b/quanta/treeviews/structtreetag.cpp
@@ -37,14 +37,14 @@ StructTreeTag::StructTreeTag(TQListView *tqparent, TQString a_title)
node = 0L;
hasOpenFileMenu = false;
groupTag = 0L;
- tqparentTree = static_cast<StructTreeView*>(tqparent);
+ parentTree = static_cast<StructTreeView*>(tqparent);
}
StructTreeTag::StructTreeTag(StructTreeTag *tqparent, Node *a_node, const TQString a_title,
TQListViewItem *after )
: KListViewItem(tqparent, after, a_title)
{
- tqparentTree = tqparent->tqparentTree;
+ parentTree = tqparent->parentTree;
hasOpenFileMenu = false;
groupTag = 0L;
static const TQString space = " ";
@@ -105,36 +105,36 @@ StructTreeTag::StructTreeTag(StructTreeTag *tqparent, Node *a_node, const TQStri
if (!typingInProgress)
{
- TQTag *tqparentTQTag = 0L;
+ TQTag *parentTQTag = 0L;
if (node->tqparent)
- tqparentTQTag = QuantaCommon::tagFromDTD(node->tqparent);
+ parentTQTag = QuantaCommon::tagFromDTD(node->tqparent);
TQString qTagName = node->tag->dtd()->caseSensitive ? node->tag->name : node->tag->name.upper();
int line, col;
node->tag->beginPos(line, col);
- if (tqparentTQTag && !tqparentTQTag->childTags.tqcontains(qTagName) &&
- !tqparentTQTag->childTags.isEmpty())
+ if (parentTQTag && !parentTQTag->childTags.tqcontains(qTagName) &&
+ !parentTQTag->childTags.isEmpty())
{
node->tag->write()->setErrorMark(line);
- TQString tqparentTagName = node->tag->dtd()->caseSensitive ? node->tqparent->tag->name : node->tqparent->tag->name.upper();
- tqparentTree->showMessage(i18n("Line %1: %2 is not a possible child of %3.\n").tqarg(line + 1).tqarg(qTagName).tqarg(tqparentTagName));
+ TQString parentTagName = node->tag->dtd()->caseSensitive ? node->tqparent->tag->name : node->tqparent->tag->name.upper();
+ parentTree->showMessage(i18n("Line %1: %2 is not a possible child of %3.\n").tqarg(line + 1).tqarg(qTagName).tqarg(parentTagName));
}
TQString nextTagName;
if (node->next)
{
nextTagName = node->tag->dtd()->caseSensitive ? node->next->tag->name : node->next->tag->name.upper();
}
- tqparentTQTag = QuantaCommon::tagFromDTD(node);
- if (tqparentTQTag && !tqparentTQTag->isSingle() &&
- !tqparentTQTag->isOptional() &&
+ parentTQTag = QuantaCommon::tagFromDTD(node);
+ if (parentTQTag && !parentTQTag->isSingle() &&
+ !parentTQTag->isOptional() &&
(!node->next || ( !node->getClosingNode())) )
{
node->tag->write()->setErrorMark(line);
- tqparentTree->showMessage(i18n("Line %1, column %2: Closing tag for %3 is missing.").tqarg(line + 1).tqarg(col + 1).tqarg(qTagName));
+ parentTree->showMessage(i18n("Line %1, column %2: Closing tag for %3 is missing.").tqarg(line + 1).tqarg(col + 1).tqarg(qTagName));
} else
- if (!tqparentTQTag && node->tag->name.upper() != "!DOCTYPE")
+ if (!parentTQTag && node->tag->name.upper() != "!DOCTYPE")
{
node->tag->write()->setErrorMark(line);
- tqparentTree->showMessage(i18n("Line %1, column %2: %3 is not part of %4.").tqarg(line + 1).tqarg(col + 1).tqarg(qTagName).tqarg(node->tag->dtd()->nickName));
+ parentTree->showMessage(i18n("Line %1, column %2: %3 is not part of %4.").tqarg(line + 1).tqarg(col + 1).tqarg(qTagName).tqarg(node->tag->dtd()->nickName));
}
}
break;
@@ -182,7 +182,7 @@ StructTreeTag::StructTreeTag(StructTreeTag *tqparent, Node *a_node, const TQStri
if (!node->prev || qTagName != "/" + qPrevTagName)
{
node->tag->write()->setErrorMark(line);
- tqparentTree->showMessage(i18n("Line %1, column %2: Opening tag for %3 is missing.").tqarg(line + 1).tqarg(col + 1).tqarg(qTagName));
+ parentTree->showMessage(i18n("Line %1, column %2: Opening tag for %3 is missing.").tqarg(line + 1).tqarg(col + 1).tqarg(qTagName));
}
}
title = tag->tagStr().left(70).stripWhiteSpace();
@@ -207,7 +207,7 @@ StructTreeTag::StructTreeTag(StructTreeTag *tqparent, TQString a_title )
node = 0L;
hasOpenFileMenu = false;
groupTag = 0L;
- tqparentTree = tqparent->tqparentTree;
+ parentTree = tqparent->parentTree;
}