From eb52a45a0c1f42386dbc0e148e81972ae3878b71 Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Sun, 18 Jul 2010 00:39:40 +0000 Subject: Theme Editor: If a pr project specifies a valid #target value, its settings are now loaded into the device configuration panel when the theme is loaded git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27476 a1c6a512-1295-4272-9138-f99709370657 --- utils/themeeditor/models/targetdata.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'utils/themeeditor/models/targetdata.cpp') diff --git a/utils/themeeditor/models/targetdata.cpp b/utils/themeeditor/models/targetdata.cpp index a20a4cf18f..70d231988b 100644 --- a/utils/themeeditor/models/targetdata.cpp +++ b/utils/themeeditor/models/targetdata.cpp @@ -49,6 +49,7 @@ TargetData::TargetData(QString file) QRect rSize(0, 0, 0, 0); ScreenDepth rDepth = None; bool fm = false; + bool record = false; if(id == "") break; @@ -119,13 +120,19 @@ TargetData::TargetData(QString file) if(s.toLower() == "yes") fm = true; } + else if(key.toLower() == "record") + { + QString s = scanString(data, cursor); + if(s.toLower() == "yes") + record = true; + } } } /* Checking for the closing '}' and adding the entry */ if(require('}', data, cursor)) { - entries.append(Entry(name, size, depth, rSize, rDepth, fm)); + entries.append(Entry(name, size, depth, rSize, rDepth, fm, record)); indices.insert(id, index); index++; } -- cgit v1.2.3