Obsolete Members for PortalPrivilegeListModel

The following members of QML type PortalPrivilegeListModel are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

Signals

Methods

  • void append(PortalPrivilege portalPrivilege) (obsolete)
  • void clear() (obsolete)
  • void insert(int index, PortalPrivilege portalPrivilege) (obsolete)
  • void move(int from, int to) (obsolete)
  • void remove(int index, int count) (obsolete)

Signal Documentation

portalPrivilegeAdded(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 privilege is added to the model. index The index at which the PortalPrivilege was added. Use itemAdded(int index)

Note: The corresponding handler is onPortalPrivilegeAdded.


portalPrivilegeRemoved(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 an item is removed from the model. index The index at which the PortalPrivilege was removed. Use itemRemoved(int index)

Note: The corresponding handler is onPortalPrivilegeRemoved.


Method Documentation

void append(PortalPrivilege portalPrivilege)

This method is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Appends a PortalPrivilege portalPrivilege to the list model.

This method only affects the local instance of this list model class. This method will not add a privilege for the online user.


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 privileges from the list model.

This method only affects the local instance of this list model class. This method will not remove a privilege from the online user.


void insert(int index, PortalPrivilege portalPrivilege)

This method is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Inserts a PortalPrivilege portalPrivilege at the specified index in the list.

This method only affects the local instance of this list model class. This method will not add a privilege for the online user.


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 PortalPrivilege 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 a privilege for the online user.


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. This method will not remove a privilege from the online user.


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