Warning, /frameworks/qqc2-desktop-style/org.kde.desktop/Control.qml is written in an unsupported language. File is not indexed.

0001 /*
0002     SPDX-FileCopyrightText: 2017 Marco Martin <mart@kde.org>
0003     SPDX-FileCopyrightText: 2017 The Qt Company Ltd.
0004 
0005     SPDX-License-Identifier: LGPL-3.0-only OR GPL-2.0-or-later
0006 */
0007 
0008 
0009 import QtQuick
0010 import QtQuick.Templates as T
0011 import org.kde.kirigami as Kirigami
0012 import org.kde.qqc2desktopstyle.private as StylePrivate
0013 
0014 T.Control {
0015     id: control
0016 
0017     implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
0018                             implicitContentWidth + leftPadding + rightPadding)
0019     implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
0020                              implicitContentHeight + topPadding + bottomPadding)
0021 
0022     topPadding: styleItem.pixelMetric("layouttopmargin")
0023     leftPadding: styleItem.pixelMetric("layoutleftmargin")
0024     rightPadding: styleItem.pixelMetric("layoutrightmargin")
0025     bottomPadding: styleItem.pixelMetric("layoutbottommargin")
0026 
0027     property Item __style: StylePrivate.StyleItem {
0028         id: styleItem
0029     }
0030 }