Changeset View
Changeset View
Standalone View
Standalone View
src/pagepool.h
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Line(s) | 65 | Q_INVOKABLE QQuickItem *loadPageWithProperties( | |||
---|---|---|---|---|---|
66 | const QString &url, const QVariantMap &properties, QJSValue callback = QJSValue()); | 66 | const QString &url, const QVariantMap &properties, QJSValue callback = QJSValue()); | ||
67 | 67 | | |||
68 | /** | 68 | /** | ||
69 | * @returns The url of the page for the given instance, empty if there is no correspondence | 69 | * @returns The url of the page for the given instance, empty if there is no correspondence | ||
70 | */ | 70 | */ | ||
71 | Q_INVOKABLE QUrl urlForPage(QQuickItem *item) const; | 71 | Q_INVOKABLE QUrl urlForPage(QQuickItem *item) const; | ||
72 | 72 | | |||
73 | /** | 73 | /** | ||
74 | * @returns The page associated with a given URL, nullptr if there is no correspondence | ||||
75 | */ | ||||
76 | Q_INVOKABLE QQuickItem *pageForUrl(const QUrl &url) const; | ||||
77 | | ||||
78 | /** | ||||
74 | * @returns true if the is managed by the PagePool | 79 | * @returns true if the is managed by the PagePool | ||
75 | * @param the page can be either a QQuickItem or an url | 80 | * @param the page can be either a QQuickItem or an url | ||
76 | */ | 81 | */ | ||
77 | Q_INVOKABLE bool contains(const QVariant &page) const; | 82 | Q_INVOKABLE bool contains(const QVariant &page) const; | ||
78 | 83 | | |||
79 | /** | 84 | /** | ||
80 | * Deletes the page (only if is managed by the pool. | 85 | * Deletes the page (only if is managed by the pool. | ||
81 | * @param page either the url or the instance of the page | 86 | * @param page either the url or the instance of the page | ||
Show All 36 Lines |