summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/models/parsetreenode.cpp
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-07-05 19:02:40 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-07-05 19:02:40 +0000
commit71b561e3dfb07edf3ccaee7f119167d6ec681a50 (patch)
treeeb36b33f08c658388a0e9dccd95a0a201ea992d5 /utils/themeeditor/models/parsetreenode.cpp
parentdb1b823ac3ea524d80a83876c9c99593d29f3817 (diff)
downloadrockbox-71b561e3dfb07edf3ccaee7f119167d6ec681a50.tar.gz
rockbox-71b561e3dfb07edf3ccaee7f119167d6ec681a50.tar.bz2
rockbox-71b561e3dfb07edf3ccaee7f119167d6ec681a50.zip
Theme Editor: Fixed bug that caused WPS skins without SBS parents not to render their backdrops correctly. Added support for RTL-dependant text alignment
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27295 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/models/parsetreenode.cpp')
-rw-r--r--utils/themeeditor/models/parsetreenode.cpp22
1 files changed, 21 insertions, 1 deletions
diff --git a/utils/themeeditor/models/parsetreenode.cpp b/utils/themeeditor/models/parsetreenode.cpp
index 1ce3d098b9..25cae58762 100644
--- a/utils/themeeditor/models/parsetreenode.cpp
+++ b/utils/themeeditor/models/parsetreenode.cpp
@@ -616,6 +616,26 @@ bool ParseTreeNode::execTag(const RBRenderInfo& info, RBViewport* viewport)
/* %ar */
viewport->alignText(RBViewport::Right);
return true;
+
+ case 'x':
+ /* %ax */
+ return true;
+
+ case 'L':
+ /* %aL */
+ if(info.device()->data("rtl").toBool())
+ viewport->alignText(RBViewport::Right);
+ else
+ viewport->alignText(RBViewport::Left);
+ return true;
+
+ case 'R':
+ /* %aR */
+ if(info.device()->data("rtl").toBool())
+ viewport->alignText(RBViewport::Left);
+ else
+ viewport->alignText(RBViewport::Right);
+ return true;
}
return false;
@@ -811,7 +831,7 @@ bool ParseTreeNode::execTag(const RBRenderInfo& info, RBViewport* viewport)
case '\0':
/* %X */
filename = QString(element->params[0].data.text);
- if(info.sbsScreen())
+ if(info.sbsScreen() && info.screen()->parentItem())
info.sbsScreen()->setBackdrop(filename);
else
info.screen()->setBackdrop(filename);