Obsolete Members for PortalFolderListModel

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

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

portalFolderAdded(int index)

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.


portalFolderRemoved(int index)

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.


void clear()

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.


void move(int from, int to)

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.


void remove(int index, int count = 1)

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.


Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.