Handle comma separated list of properties to save for a custom widget.

git-svn-id: http://voip.null.ro/svn/yate@4316 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2011-04-18 15:14:11 +00:00
parent eefd392cf5
commit 3349b2c714
1 changed files with 6 additions and 2 deletions

View File

@ -997,8 +997,12 @@ public:
* Set the list of properties to save
* @param list The new list of properties to save
*/
void setSaveProps(QStringList list)
{ m_saveProps = list; }
void setSaveProps(QStringList list) {
if (list.size() != 1)
m_saveProps = list;
else
m_saveProps = list[0].split(QChar(','),QString::SkipEmptyParts);
}
/**
* Retrieve a QObject descendent of this object