The following members of class PortalItem are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
| ||PortalItem(const QString &json, Portal *portal, QObject *parent = nullptr)|
| ||accessAndUseConstraintsHtml() const|
| ||setType(PortalItemType type)|
Member Function Documentation
Constructor that accepts JSON (json), a Portal (portal), and an optional parent. This constructor is obsolete, prefer to use fromJson function.
QString PortalItem::accessAndUseConstraintsHtml() const
Returns the access and use constraints HTML.
This function is deprecated in 100.4.0. Use termsOfUse instead.
void PortalItem::setType(PortalItemType type)
Sets the item's type to type.
This function is deprecated from 100.6 onwards. Use constructor with PortalItemType instead.
Note: Beyond being deprecated, the setter also no longer functions and is a no-op method. This is because the Portal Rest API does not allow changing the type of an existing PortalItem.
See also type().