An item contained within BookmarksViewController::bookmarks. This class wraps a Bookmark
for easy manipulation/inspection within an AbstractItemModel. More...
Header: | #include <BookmarkListItem> |
Inherits: | QObject |
Properties
- name : const QString
Public Functions
BookmarkListItem(Esri::ArcGISRuntime::Bookmark *bookmark, QObject *parent = nullptr) | |
BookmarkListItem(QObject *parent = nullptr) | |
virtual | ~BookmarkListItem() override |
Esri::ArcGISRuntime::Bookmark * | bookmark() const |
QString | name() const |
void | setBookmark(Esri::ArcGISRuntime::Bookmark *bookmark) |
void | setName(const QString &name) |
Signals
void | bookmarkChanged() |
void | nameChanged() |
Detailed Description
Property Documentation
name : const QString
Returns the name of the item.
Access functions:
QString | name() const |
Notifier signal:
void | nameChanged() |
Member Function Documentation
BookmarkListItem::BookmarkListItem (Esri::ArcGISRuntime::Bookmark *bookmark, QObject *parent = nullptr)
Constructs a new BookmarkListItem object with a given bookmark and parent.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
BookmarkListItem::BookmarkListItem (QObject *parent = nullptr)
Constructs a new empty BookmarkListItem object with a given parent.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[signal]
void BookmarkListItem::bookmarkChanged ()
Signal emitted when the bookmark changes.
[signal]
void BookmarkListItem::nameChanged ()
Signal emitted when the bookmark name changes.
Note: Notifier signal for property name.
[override virtual]
BookmarkListItem::~BookmarkListItem ()
Destructor.
Esri::ArcGISRuntime::Bookmark *BookmarkListItem::bookmark() const
Returns the current bookmark
.
See also setBookmark().
void BookmarkListItem::setBookmark (Esri::ArcGISRuntime::Bookmark *bookmark)
Change the underlying item to bookmark.
See also bookmark().
void BookmarkListItem::setName (const QString &name)
Sets the underlying item to name.
See also name().