Obsolete Members for PortalItemCommentListModel

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

Signals

Methods

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

Signal Documentation

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

Note: The corresponding handler is onPortalItemCommentAdded.


portalItemCommentRemoved(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 comment is removed from the model. index The index at which the PortalItemComment was removed. Use itemRemoved(int index)

Note: The corresponding handler is onPortalItemCommentRemoved.


Method Documentation

void append(PortalItemComment portalItemComment)

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

Appends the PortalItemComment portalItemComment to the list model.

This method only affects the local instance of this list model class. To add a comment to the online portal item, use PortalItem::addComment 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 comments from the list model.

This method only affects the local instance of this list model class. This method will not remove a comment from the online portal item.


void insert(int index, PortalItemComment portalItemComment)

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

Inserts the PortalItemComment portalItemComment at the specified index in the list.

This method only affects the local instance of this list model class. To add a comment to the online portal item, use PortalItem::addComment instead.


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 PortalItemComment 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 comment on the online portal item.


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 - The index of first object to remove.
  • count - The 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 comment from the online portal item.


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