The following members of QML type PortalFolderListModel are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
Signals
- portalFolderAdded(int index)
(obsolete)
- portalFolderRemoved(int index)
(obsolete)
Methods
- void append(PortalFolder portalFolder)
(obsolete)
- void clear()
(obsolete)
- void insert(int index, PortalFolder portalFolder)
(obsolete)
- void move(int from, int to)
(obsolete)
- void remove(int index, int count)
(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 a folder is added to the list model.
index is the index of the added PortalFolder. Use itemAdded(int index);
Note: The corresponding handler is onPortalFolderAdded
.
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 a folder is removed from the list model.
index is the index of the removed PortalFolder. Use itemRemoved(int index)
Note: The corresponding handler is onPortalFolderRemoved
.
Method Documentation
void append(PortalFolder portalFolder) |
This method is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Appends a portalFolder to the PortalFolder list model.
This method only affects the local instance of this list model class. To create a folder in the user's online portal, use PortalUser::createFolder and PortalUser::fetchContent 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 portalFolders from the list model.
This method only affects the local instance of this list model class. To remove the folders from the online portal, use PortalUser::deleteFolder instead.
void insert(int index, PortalFolder portalFolder) |
This method is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Inserts a portalFolder at a specified index in the list.
This method will append to the list model if the specified index is greater than the current size of the list.
This method only affects the local instance of this list model class. To create a folder in the user's online portal, use PortalUser::createFolder and PortalUser::fetchContent instead.
Note: There is no method to change the order of a portal user's folders in the API.
This method is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Moves one PortalFolder from an index in the list model to a different index.
This method only affects the local instance of this list model class. This method will not move the folder in the online portal.
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 Index of first object to remove.
- count Number of objects to remove. This parameter defaults to
1
.
This method only affects the local instance of this list model class. To remove the folder at index from the online portal, use PortalUser::deleteFolder instead.