ApplicationItem

Search for usage in LXR

ApplicationItem Class Reference

Properties

alias pageStack
 

Detailed Description

An item that provides the features of ApplicationWindow without the window itself.

This allows embedding into a larger application. It's based around the PageRow component that allows adding/removing of pages.

Example usage:

import org.kde.kirigami as Kirigami
Kirigami.ApplicationItem {
globalDrawer: Kirigami.GlobalDrawer {
actions: [
Kirigami.Action {
text: "View"
icon.name: "view-list-icons"
Kirigami.Action {
text: "action 1"
}
Kirigami.Action {
text: "action 2"
}
Kirigami.Action {
text: "action 3"
}
},
Kirigami.Action {
text: "Sync"
icon.name: "folder-sync"
}
]
}
contextDrawer: Kirigami.ContextDrawer {
id: contextDrawer
}
pageStack.initialPage: Kirigami.Page {
mainAction: Kirigami.Action {
icon.name: "edit"
onTriggered: {
// do stuff
}
}
contextualActions: [
Kirigami.Action {
icon.name: "edit"
text: "Action text"
onTriggered: {
// do stuff
}
},
Kirigami.Action {
icon.name: "edit"
text: "Action text"
onTriggered: {
// do stuff
}
}
]
// ...
}
}
alias pageStack
This property holds the PageRow used to allocate the pages and manage the transitions between them.

Definition at line 73 of file ApplicationItem.qml.

Property Documentation

◆ pageStack

alias ApplicationItem::pageStack
read

This property holds the PageRow used to allocate the pages and manage the transitions between them.

Remarks
This property is read-only

It's using a PageRow, while having the same API as PageStack, it positions the pages as adjacent columns, with as many columns as can fit in the screen. An handheld device would usually have a single fullscreen column, a tablet device would have many tiled columns.

Definition at line 87 of file ApplicationItem.qml.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:50:16 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.