refs #325, name variant pair allows test for existing values

* equal value updates can be skipped
* equalsQVariant in CValueObject
* resizing parameter for views
This commit is contained in:
Klaus Basan
2014-09-27 15:48:04 +02:00
parent f10e625b7f
commit 7304d8bd3e
8 changed files with 70 additions and 27 deletions

View File

@@ -30,11 +30,15 @@ namespace BlackGui
//! Icon mode
void setIconMode(bool withIcon);
//! Update or add value, simple string version
void addOrUpdateByName(const QString &name, const QString &value, const BlackMisc::CIcon &icon = BlackMisc::CIcon());
//! Update or add value, QVariant version
bool addOrUpdateByName(const QString &name, const QVariant &value, const BlackMisc::CIcon &icon = BlackMisc::CIcon(), bool resize = true, bool skipEqualValues = true);
//! Remove by name
void removeByName(const QString &name);
void removeByName(const QString &name, bool resize = true);
//! Contains name
bool containsName(const QString &name);
};
}
}