summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/parsetreenode.cpp
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-06-02 06:12:18 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-06-02 06:12:18 +0000
commit4003f35dc79c4678526d2ee3a510963713ce88b8 (patch)
treea5b82cdb81cb56b65f6b5f6a4a4284d5a32f94f0 /utils/themeeditor/parsetreenode.cpp
parentf16adb045a25bf6f7ac29a2f6c80b25f1a3d2613 (diff)
downloadrockbox-4003f35dc79c4678526d2ee3a510963713ce88b8.tar.gz
rockbox-4003f35dc79c4678526d2ee3a510963713ce88b8.tar.bz2
rockbox-4003f35dc79c4678526d2ee3a510963713ce88b8.zip
Theme Editor: Removed the NEWLINE parse tree element
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26463 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/parsetreenode.cpp')
-rw-r--r--utils/themeeditor/parsetreenode.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/utils/themeeditor/parsetreenode.cpp b/utils/themeeditor/parsetreenode.cpp
index b283e13038..70124c338d 100644
--- a/utils/themeeditor/parsetreenode.cpp
+++ b/utils/themeeditor/parsetreenode.cpp
@@ -107,6 +107,8 @@ QString ParseTreeNode::genCode() const
if(children[i]->element->type == TAG)
buffer.append(TAGSYM);
buffer.append(children[i]->genCode());
+ if(element->type == LINE || i == 0)
+ buffer.append('\n');
}
break;
@@ -117,6 +119,7 @@ QString ParseTreeNode::genCode() const
if(i != children.count() - 1)
buffer.append(MULTILINESYM);
}
+ buffer.append('\n');
break;
case CONDITIONAL:
@@ -156,10 +159,6 @@ QString ParseTreeNode::genCode() const
}
break;
- case NEWLINE:
- buffer.append('\n');
- break;
-
case TEXT:
for(char* cursor = element->text; *cursor; cursor++)
{
@@ -253,9 +252,6 @@ QVariant ParseTreeNode::data(int column) const
case TAG:
return QObject::tr("Tag");
- case NEWLINE:
- return QObject::tr("Newline");
-
case TEXT:
return QObject::tr("Plaintext");
}
@@ -295,9 +291,6 @@ QVariant ParseTreeNode::data(int column) const
case CONDITIONAL:
return QString();
- case NEWLINE:
- return QObject::tr("\\n");
-
case TEXT:
case COMMENT:
return QString(element->text);