The following members of QML type PortalItemListModel are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
Signals
- portalItemAdded(int index)
(obsolete)
- portalItemRemoved(int index)
(obsolete)
Methods
- void append(PortalItem portalItem)
(obsolete)
- void clear()
(obsolete)
- void insert(int index, PortalItem portalItem)
(obsolete)
- void move(int from, int to)
(obsolete)
- void remove(int index, int count)
(obsolete)
- void setProperty(int index, string property, variant value)
(obsolete)
Signal Documentation
This signal is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Signal emitted when an item is added to the model. index The index at which the PortalItem was added. Use itemAdded(int index)
Note: The corresponding handler is onPortalItemAdded
.
This signal is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Signal emitted when an item is removed from the model. index The index at which the PortalItem was removed. Use itemRemoved(int index)
Note: The corresponding handler is onPortalItemRemoved
.
Method Documentation
void append(PortalItem portalItem) |
This method is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Appends PortalItem portalItem to the list model.
This method only affects the local instance of this list model class. To add an item to the online portal, use PortalUser::addPortalItemWithJson or PortalUser::addPortalItemWithUrl instead.
This method is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Removes all items from the list model.
This method only affects the local instance of this list model class. To remove an item from the online portal, use PortalUser::deletePortalItem instead.
void insert(int index, PortalItem portalItem) |
This method is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Inserts a PortalItem portalItem at the specified index in the list.
This method only affects the local instance of this list model class. To add an item to the online portal, use PortalUser::addPortalItemWithJson or PortalUser::addPortalItemWithUrl instead.
This method is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Moves one PortalItem from an index in the list model to a different index.
This method only affects the local instance of this list model class. To move items between folders, use PortalUser::movePortalItem instead.
This method is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Removes one or more objects starting at the specified index.
- index - The index of first object to remove.
- count - The number of objects to remove. This parameter defaults to
1
.
This method is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Changes the property of the PortalItem at index in the list model to value.