• Skip to content
  • Skip to link menu
Brand

API Documentation

  1. KDE API Reference
  2. Kirigami
  • KDE Home
  • Contact Us

Quick Links

Skip menu "Kirigami"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • File List
  • Related Pages

Class Picker

About

QtQuick plugins to build user interfaces based on the KDE UX guidelines

Maintainer
Marco Martin
Supported platforms
Android, Linux
Community
IRC: #plasma on Freenode
Mailing list: plasma-devel
Use with CMake
find_package(KF5Kirigami)
target_link_libraries(yourapp KF5::Kirigami)
Clone
git clone git://anongit.kde.org/kirigami1.git
Browse source
Kirigami on cgit.kde.org

Kirigami

  • View on LXR
  • org
  • kde
  • kirigami
  • ContextDrawer
Properties | List of all members
org::kde::kirigami::ContextDrawer Class Reference
Inheritance diagram for org::kde::kirigami::ContextDrawer:
Inheritance graph
[legend]

Properties

var actions
 
string title
 
- Properties inherited from org::kde::kirigami::OverlayDrawer
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

- Public Member Functions inherited from org::kde::kirigami::OverlayDrawer
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:
  • ContextDrawer.qml
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

KDE's Doxygen guidelines are available online.

Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal