Warning, /plasma/qqc2-breeze-style/style/qtquickcontrols/Frame.qml is written in an unsupported language. File is not indexed.
0001 /* SPDX-FileCopyrightText: 2020 Noah Davis <noahadvs@gmail.com> 0002 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0003 */ 0004 0005 import QtQuick 0006 import QtQuick.Controls as Controls 0007 import QtQuick.Templates as T 0008 import org.kde.kirigami as Kirigami 0009 0010 import org.kde.breeze.impl as Impl 0011 0012 T.Frame { 0013 id: control 0014 0015 implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset, 0016 Math.ceil(contentWidth) + leftPadding + rightPadding) 0017 implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset, 0018 Math.ceil(contentHeight) + topPadding + bottomPadding) 0019 0020 // contentWidth: contentItem.implicitWidth || (contentChildren.length === 1 ? contentChildren[0].implicitWidth : 0) 0021 //contentHeight: contentItem.implicitHeight || (contentChildren.length === 1 ? contentChildren[0].implicitHeight : 0) 0022 0023 padding: Impl.Units.veryLargeSpacing + Impl.Units.smallBorder 0024 0025 background: Rectangle { 0026 color: Kirigami.Theme.backgroundColor 0027 radius: Impl.Units.smallRadius 0028 border.color: Impl.Theme.separatorColor() 0029 border.width: Impl.Units.smallBorder 0030 } 0031 }