• 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

  • src
  • styles
  • Plasma
styles/Plasma/Units.qml
1 /*
2  * Copyright 2015 Marco Martin <mart@kde.org>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Library General Public License as
6  * published by the Free Software Foundation; either version 2, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Library General Public License for more details
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this program; if not, write to the
16  * Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  */
19 
20 pragma Singleton
21 
22 import QtQuick 2.4
23 import org.kde.plasma.core 2.0 as PlasmaCore
24 
25 
26 QtObject {
32  property int gridUnit: units.gridUnit
33 
51  property QtObject iconSizes: QtObject {
52  property int small: units.iconSizes.small
53  property int smallMedium: units.iconSizes.smallMedium
54  property int medium: units.iconSizes.medium
55  property int large: units.iconSizes.large
56  property int huge: units.iconSizes.huge
57  property int enormous: units.iconSizes.enormous
58  }
59 
66  property int smallSpacing: units.smallSpacing
67 
74  property int largeSpacing: units.largeSpacing
75 
82  property real devicePixelRatio: units.devicePixelRatio
83 
88  property int longDuration: units.longDuration
89 
94  property int shortDuration: units.shortDuration
95 
99  property variant fontMetrics: TextMetrics {
100  text: "M"
101  }
102 }
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