Warning, /plasma/qqc2-breeze-style/style/qtquickcontrols/GroupBox.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 0007 import QtQuick.Templates as T 0008 import QtQuick.Controls as Controls 0009 import org.kde.kirigami as Kirigami 0010 0011 import org.kde.breeze.impl as Impl 0012 0013 T.GroupBox { 0014 id: control 0015 0016 implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset, 0017 contentWidth + leftPadding + rightPadding, 0018 implicitLabelWidth + leftPadding + rightPadding) 0019 implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset, 0020 contentHeight + topPadding + bottomPadding) 0021 0022 // contentWidth: contentItem.implicitWidth || (contentChildren.length === 1 ? contentChildren[0].implicitWidth : 0) 0023 //contentHeight: contentItem.implicitHeight || (contentChildren.length === 1 ? contentChildren[0].implicitHeight : 0) 0024 0025 spacing: Kirigami.Units.mediumSpacing 0026 padding: Impl.Units.veryLargeSpacing 0027 topPadding: padding + (implicitLabelWidth > 0 ? implicitLabelHeight + spacing : 0) 0028 0029 label: Controls.Label { 0030 x: control.leftPadding 0031 width: control.availableWidth 0032 0033 text: control.title 0034 font: control.font 0035 color: Kirigami.Theme.textColor 0036 elide: Text.ElideRight 0037 horizontalAlignment: Text.AlignLeft 0038 verticalAlignment: Text.AlignVCenter 0039 } 0040 0041 /*background: Rectangle { 0042 color: "transparent" 0043 property color borderColor: Kirigami.Theme.textColor 0044 border.color: Qt.rgba(borderColor.r, borderColor.g, borderColor.b, 0.3) 0045 }*/ 0046 }