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 2.6
0010 import QtQuick.Templates 2.15 as T
0011 import org.kde.qqc2desktopstyle.private 1.0 as StylePrivate
0012 import org.kde.kirigami 2.4 as Kirigami
0013 
0014 T.Control {
0015     id: control
0016 
0017     implicitWidth: Math.max(background ? background.implicitWidth : 0,
0018                             (contentItem ? contentItem.implicitWidth : 0) + leftPadding + rightPadding)
0019     implicitHeight: Math.max(background ? background.implicitHeight : 0,
0020                              (contentItem ? contentItem.implicitHeight : 0) + 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 }