Kirigami2
PageRow.qml
39 readonly property Item lastItem: columnView.contentChildren.length > 0 ? columnView.contentChildren[columnView.contentChildren.length - 1] : null
152 * * ``Auto``: Depending on application formfactor, it can behave automatically like other values, such as a Breadcrumb on mobile and ToolBar on desktop.
153 * * ``Breadcrumb``: It will show a breadcrumb of all the page titles in the stack, for easy navigation.
155 * * ``ToolBar``: Each page will have the title on top together buttons and menus to represent all of the page actions. Not available on Mobile systems.
158 * * ``actualStyle``: This will represent the actual style of the toolbar; it can be different from style in the case style is Auto.
159 * * ``showNavigationButtons``: OR flags combination of Kirigami.ApplicationHeaderStyle.ShowBackButton and Kirigami.ApplicationHeaderStyle.ShowForwardButton.
160 * * ``toolbarActionAlignment: Qt::Alignment``: How to horizontally align the actions when using the ToolBar style. Note that anything but Qt.AlignRight will cause the title to be hidden (default: ``Qt.AlignRight``).
161 * * ``minimumHeight: int`` Minimum height of the header, which will be resized when scrolling. Only in Mobile mode (default: ``preferredHeight``, sliding but no scaling).
163 * * ``leftReservedSpace: int, readonly`` How many pixels of extra space are reserved at the left of the page toolbar (typically for navigation buttons or a drawer handle).
164 * * ``rightReservedSpace: int, readonly`` How many pixels of extra space are reserved at the right of the page toolbar (typically for a drawer handle).
166 * @property org::kde::kirigami::private::globaltoolbar::PageRowGlobalToolBarStyleGroup globalToolBar
174 * In this case, when open and not modal, the drawer contents will be in the same layer as the base pagerow.
179 // TODO KF6: globaldrawer should use actions also used by this sidebar instead of reparenting globaldrawer contents?
194 * @brief This property holds whether to automatically pop pages at the top of the stack if they are not visible.
196 * If a user navigates to a previous page on the stack (ex. pressing back button) and pages above
246 if (!pagesLogic.verifyPages(page, properties)) {
247 console.warn("Page pushed as a dialog or layer does not conform to the rules. Please check the documentation.");
253 if (QQC2.ApplicationWindow.window.width > Kirigami.Units.gridUnit * 40) {
260 y: Kirigami.Units.gridUnit * 2.5,
277 item = component.createObject(dialog.contentItem, properties);
288 value: function() {
292 dialog.open();
301 }
308 windowProperties.height = Kirigami.Units.gridUnit * 30;
318 }
320 windowProperties.flags = Qt.Dialog | Qt.CustomizeWindowHint | Qt.WindowTitleHint | Qt.WindowCloseButtonHint;
331 }
360 console.warn("You are trying to insert a page to an out-of-bounds position. Position will be adjusted accordingly.");
508 try { // app code might be screwy, but we still want to continue functioning if it throws an exception
524 try { // app code might be screwy, but we still want to continue functioning if it throws an exception
649 readonly property int leftReservedSpace: globalToolBarUI.item ? globalToolBarUI.item.leftReservedSpace : 0
650 readonly property int rightReservedSpace: globalToolBarUI.item ? globalToolBarUI.item.rightReservedSpace : 0
652 readonly property Item leftHandleAnchor: globalToolBarUI.item ? globalToolBarUI.item.leftHandleAnchor : null
653 readonly property Item rightHandleAnchor: globalToolBarUI.item ? globalToolBarUI.item.rightHandleAnchor : null
872 // NOTE: It's a PropertyAnimation instead of an Animator because with an animator the item will be visible for an instant before starting to fade
943 active: (!leadingVisibleItem || leadingVisibleItem.globalToolBarStyle !== Kirigami.ApplicationHeaderStyle.None) &&
944 (globalToolBar.actualStyle !== Kirigami.ApplicationHeaderStyle.None || (leadingVisibleItem && leadingVisibleItem.globalToolBarStyle === Kirigami.ApplicationHeaderStyle.ToolBar))
961 __mobileDialogLayerComponent = Qt.createComponent(Qt.resolvedUrl("private/MobileDialogLayer.qml"));
1057 } else if (typeof page === "object" && !(page instanceof Item) && page.toString !== undefined) {
1126 columnResizeMode: root.wideMode ? Kirigami.ColumnView.FixedColumns : Kirigami.ColumnView.SingleColumn
1136 // manually fetch lastItem here rather than use root.lastItem property, since that binding may not have updated yet
1153 x: (columnView.width - width) * (columnView.contentX / (columnView.contentWidth - columnView.width))
PageRow implements a row-based navigation model, which can be used with a set of interlinked informat...
Definition PageRow.qml:21
OverlayDrawer leftSidebar
This property assigns a drawer as an internal left sidebar for this PageRow.
Definition PageRow.qml:170
bool wideMode
This property tells whether the PageRow is wide enough to show multiple pages.
Definition PageRow.qml:127
alias depth
This property holds the number of pages currently pushed onto the view.
Definition PageRow.qml:29
alias visibleItems
This property holds all visible pages in the PageRow, excluding those which are scrolled away.
Definition PageRow.qml:86
bool popHiddenPages
This property holds whether to automatically pop pages at the top of the stack if they are not visibl...
Definition PageRow.qml:189
alias leadingVisibleItem
This property holds the first page in the PageRow that is at least partially visible.
Definition PageRow.qml:95
alias separatorVisible
This property sets whether the separators between pages should be displayed.
Definition PageRow.qml:136
alias globalToolBar
This property sets the appearance of an optional global toolbar for the whole PageRow.
Definition PageRow.qml:160
alias currentIndex
This property holds the index of the currently active page.
Definition PageRow.qml:50
alias interactive
This property sets whether it is possible to go back/forward by swiping with a gesture on the content...
Definition PageRow.qml:121
void pushDialogLayer(page, properties={}, windowProperties={})
Pushes a page as a new dialog on desktop and as a layer on mobile.
alias trailingVisibleItem
This property holds the last page in the PageRow that is at least partially visible.
Definition PageRow.qml:104
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event(const Akonadi::Item &item)
Error
KIOCORE_EXPORT TransferJob * get(const QUrl &url, LoadType reload=NoReload, JobFlags flags=DefaultFlags)
QWidget * window(QObject *job)
QAction * replace(const QObject *recvr, const char *slot, QObject *parent)
KGuiItem properties()
KGuiItem clear()
QTextStream & left(QTextStream &stream)
QTextStream & right(QTextStream &stream)
bool close()
void destroy(bool destroyWindow, bool destroySubWindows)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:51:21 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:51:21 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.