From 68756cca43e94dc47282153e851587d84db9258b Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Mon, 5 Jul 2010 19:12:52 +0000 Subject: Theme Editor: Enabled conditional display of ID3/file info with checkbox on the device panel git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27296 a1c6a512-1295-4272-9138-f99709370657 --- utils/themeeditor/models/parsetreenode.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'utils/themeeditor/models/parsetreenode.cpp') diff --git a/utils/themeeditor/models/parsetreenode.cpp b/utils/themeeditor/models/parsetreenode.cpp index 25cae58762..f5a7e81166 100644 --- a/utils/themeeditor/models/parsetreenode.cpp +++ b/utils/themeeditor/models/parsetreenode.cpp @@ -906,6 +906,14 @@ QVariant ParseTreeNode::evalTag(const RBRenderInfo& info, bool conditional, else child = 1; } + else if(element->tag->name[0] == 'i' || element->tag->name[0] == 'I' + || element->tag->name[0] == 'f' || element->tag->name[0] == 'F') + { + if(info.device()->data("id3available").toBool()) + child = 0; + else + child = 1; + } else { child = val.toInt(); -- cgit v1.2.3