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:
parent
eefd392cf5
commit
3349b2c714
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue