diff options
Diffstat (limited to 'utils/themeeditor/models')
-rw-r--r-- | utils/themeeditor/models/targetdata.cpp | 9 | ||||
-rw-r--r-- | utils/themeeditor/models/targetdata.h | 6 |
2 files changed, 12 insertions, 3 deletions
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++; } diff --git a/utils/themeeditor/models/targetdata.h b/utils/themeeditor/models/targetdata.h index ef7ac5c8a9..09276c5966 100644 --- a/utils/themeeditor/models/targetdata.h +++ b/utils/themeeditor/models/targetdata.h @@ -52,14 +52,15 @@ public: ScreenDepth screenDepth(int index){ return entries[index].depth; } ScreenDepth remoteDepth(int index){ return entries[index].rDepth; } bool fm(int index){ return entries[index].fm; } + bool canRecord(int index){ return entries[index].record; } private: struct Entry { Entry(QString name, QRect size, ScreenDepth depth, QRect rSize, - ScreenDepth rDepth, bool fm) + ScreenDepth rDepth, bool fm, bool record) : name(name), size(size), depth(depth), rSize(rSize), - rDepth(rDepth), fm(fm){ } + rDepth(rDepth), fm(fm), record(record){ } QString name; QRect size; @@ -67,6 +68,7 @@ private: QRect rSize; ScreenDepth rDepth; bool fm; + bool record; }; static const QString reserved; |