Kirigami2
pagerouter.h
284 * manages a stack of @link org::kde::kirigami::Page Pages @endlink created from a pool of potential
287 * Unlike most traditional stacks, a PageRouter provides functions for random access to its pages
290 * When your user interface fits the stack paradigm and is likely to use random access navigation,
358 Q_PROPERTY(QJSValue initialRoute READ initialRoute WRITE setInitialRoute NOTIFY initialRouteChanged)
718 Q_PROPERTY(QJSValue watchedRoute READ watchedRoute WRITE setWatchedRoute NOTIFY watchedRouteChanged)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_INVOKABLE bool routeActive(QJSValue route)
Check whether the current route is on the stack.
Definition: pagerouter.cpp:342
Q_INVOKABLE void pushRoute(QJSValue route)
Appends a route to the currently navigated route.
Definition: pagerouter.cpp:361
bool contains(const Key &key) const const
QQmlPropertyMap params
Exposes the data of all pages on the stack, preferring pages on the top (e.g.
Definition: pagerouter.h:393
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
bool equals(const QVariant &lhs, const QVariant &rhs)
T take(const Key &key)
Q_INVOKABLE void replaceFromHere(QJSValue route)
Replaces this route with the given routes on the stack.
Definition: pagerouter.cpp:684
Q_EMITQ_EMIT
int removeAll(const T &value)
Q_CLASSINFO(Name, Value)
Q_INVOKABLE void navigateToRoute(QJSValue route)
Navigate to the given route.
Definition: pagerouter.cpp:277
KGuiItem properties()
Q_SIGNALQ_SIGNAL
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
ColumnView is a container that lays out items horizontally in a row, when not all items fit in the Co...
Definition: columnview.h:147
void destroyed(QObject *obj)
void deleteLater()
void prepend(const T &value)
bool isCurrent
Whether the page this item belongs to is the current index of the ColumnView.
Definition: pagerouter.h:711
QJSValue watchedRoute
Which route this PageRouterAttached should watch for.
Definition: pagerouter.h:718
Q_INVOKABLE void pushRoute(QJSValue route)
Definition: pagerouter.cpp:604
Q_INVOKABLE void pushFromHere(QJSValue route)
Push a route from this route on the stack.
Definition: pagerouter.cpp:675
bool cache
Whether pages generated by this route should be cached or not.
Definition: pagerouter.h:233
Q_INVOKABLE bool routeActive(QJSValue route)
Definition: pagerouter.cpp:594
Q_INVOKABLEQ_INVOKABLE
Q_INVOKABLE void bringToView(QJSValue route)
Shifts keyboard focus and view to a given index on the PageRouter's stack.
Definition: pagerouter.cpp:323
Q_INVOKABLE QJSValue currentRoutes() const
Returns a QJSValue corresponding to the current pages on the stack.
Definition: pagerouter.cpp:751
QQmlListProperty< PageRoute > routes
The named routes a PageRouter can navigate to.
Definition: pagerouter.h:343
T & last()
Q_SIGNALSQ_SIGNALS
KGuiItem insert()
Q_INTERFACES(...)
quint32 generate()
An item managing pages and data of a ColumnView using named routes.
Definition: pagerouter.h:333
QString name(StandardShortcut id)
QRandomGenerator * system()
KIOCORE_EXPORT QString number(KIO::filesize_t size)
Q_INVOKABLE void popFromHere()
Pop routes after this route on the stack.
Definition: pagerouter.cpp:693
Attached object allowing children of a PageRouter to access its functions without requiring the child...
Definition: pagerouter.h:696
T takeLast()
QObject * parent() const const
Q_INVOKABLE void navigateToRoute(QJSValue route)
Definition: pagerouter.cpp:584
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Jan 27 2023 07:54:59 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Jan 27 2023 07:54:59 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.