org::kde::kirigami::ContextDrawer Class Reference
Inheritance diagram for org::kde::kirigami::ContextDrawer:

Properties | |
var | actions |
string | title |
![]() | |
Item | background |
int | bottomPadding |
Item | contentItem |
int | edge |
bool | handleVisible |
int | leftPadding |
alias | opened |
alias | page |
real | position |
int | rightPadding |
int | topPadding |
Additional Inherited Members | |
![]() | |
void | close () |
void | open () |
Detailed Description
A drawer specialization that will show a list of actions that are specific of the current page shown by the application.
Example usage:
import org.kde.kirigami 1.0 as Kirigami
Kirigami.ApplicationWindow {
[...]
contextDrawer: Kirigami.ContextDrawer {
id: contextDrawer
}
[...]
}
import org.kde.kirigami 1.0 as Kirigami
Kirigami.Page {
[...]
contextualActions: [
Kirigami.Action {
iconName: "edit"
text: "Action text"
onTriggered: {
// do stuff
}
},
Kirigami.Action {
iconName: "edit"
text: "Action text"
onTriggered: {
// do stuff
}
}
]
[...]
}
Definition at line 68 of file ContextDrawer.qml.
Property Documentation
var org::kde::kirigami::ContextDrawer::actions |
actions: list<Action> This can be any type of object that a ListView can accept as model.
It expects items compatible with either QAction or Kirigami Action
Definition at line 80 of file ContextDrawer.qml.
string org::kde::kirigami::ContextDrawer::title |
title: string A title for the action list that will be shown to the user when opens the drawer
Definition at line 74 of file ContextDrawer.qml.
The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2017 The KDE developers.
Generated on Fri Feb 17 2017 11:09:23 by doxygen 1.8.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2017 The KDE developers.
Generated on Fri Feb 17 2017 11:09:23 by doxygen 1.8.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.