diff options
| author | Robert Bieber <robby@bieberphoto.com> | 2010-07-05 19:12:52 +0000 |
|---|---|---|
| committer | Robert Bieber <robby@bieberphoto.com> | 2010-07-05 19:12:52 +0000 |
| commit | 68756cca43e94dc47282153e851587d84db9258b (patch) | |
| tree | f920855c71004b310ba99ab38a8c04eacfd5b1ae /utils/themeeditor/models/parsetreenode.cpp | |
| parent | 71b561e3dfb07edf3ccaee7f119167d6ec681a50 (diff) | |
| download | rockbox-68756cca43e94dc47282153e851587d84db9258b.zip rockbox-68756cca43e94dc47282153e851587d84db9258b.tar.gz rockbox-68756cca43e94dc47282153e851587d84db9258b.tar.bz2 rockbox-68756cca43e94dc47282153e851587d84db9258b.tar.xz | |
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
Diffstat (limited to 'utils/themeeditor/models/parsetreenode.cpp')
| -rw-r--r-- | utils/themeeditor/models/parsetreenode.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/themeeditor/models/parsetreenode.cpp b/utils/themeeditor/models/parsetreenode.cpp index 25cae58..f5a7e81 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(); |