refs #314, fixed DBus crash because of wrong list type

discussion here: https://dev.vatsim-germany.org/boards/22/topics/2006?r=2015#message-2015
* Fixed CIndexVariantMap
* In the same step added more tests in the DBus sample
This commit is contained in:
Klaus Basan
2014-08-21 11:27:17 +02:00
parent 2089ab89a1
commit a97830b7cf
5 changed files with 62 additions and 2 deletions

View File

@@ -47,6 +47,9 @@ namespace BlackMisc
//! Add a value
void addValue(const CPropertyIndex &index, const QVariant &value);
//! Add QString as literal, disambiguate as I want to add QString
void addValue(const CPropertyIndex &index, const char* str);
//! Add a value as non QVariant
template<class T> void addValue(const CPropertyIndex &index, const T &value) { this->m_values.insert(index, CVariant::fromValue(value)); }