ubuntu-sdk-bugs team mailing list archive
-
ubuntu-sdk-bugs team
-
Mailing list archive
-
Message #00174
[Bug 1216990] Re: cannot create custom collection
** Changed in: qtorganizer5-eds (Ubuntu)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to qtorganizer5-eds in Ubuntu.
https://bugs.launchpad.net/bugs/1216990
Title:
cannot create custom collection
Status in “qtorganizer5-eds” package in Ubuntu:
Fix Released
Bug description:
This feature is needed to support Alarms. Alarms should be saved in
their own collection to avoid mixing them with other calendar
collections.
The following code succeeds:
QOrganizerManager *manager = new QOrganizerManager("eds");
QOrganizerCollection collection;
collection.setMetaData(QOrganizerCollection::KeyName, "alarms");
manager->save(&collection);
where save() returns true, i.e. operation succeeded. However an
immediate listing of the collections will not list it.
QList<QOrganizerCollection> collections = manager->collections();
Q_FOREACH(const QOrganizerCollection &c, collections)
qDebug() << "collection" << c.metaData(QOrganizerCollection::KeyName).toString();
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtorganizer5-eds/+bug/1216990/+subscriptions