Added Highlights (#86)

Added Highlights
This commit is contained in:
Cranken
2017-07-31 00:37:22 +02:00
committed by pajlada
parent 467ca90fd8
commit 8fb0671834
17 changed files with 245 additions and 12 deletions
+9
View File
@@ -8,6 +8,7 @@ struct SettingsSnapshot {
public:
SettingsSnapshot()
: _items()
, _mapItems()
{
}
@@ -17,6 +18,12 @@ public:
std::pair<std::reference_wrapper<BaseSetting>, QVariant>(setting.get(), value));
}
void addMapItem(QString string,QPair<bool,bool> pair){
QMap<QString,QPair<bool,bool>> map;
_mapItems.insert(string,pair);
}
void apply()
{
for (auto &item : _items) {
@@ -24,6 +31,8 @@ public:
}
}
QMap<QString,QPair<bool,bool>> _mapItems;
private:
std::vector<std::pair<std::reference_wrapper<BaseSetting>, QVariant>> _items;
};