Warning, /frameworks/qqc2-desktop-style/org.kde.desktop/GroupBox.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.Controls 2.15 0011 import QtQuick.Templates 2.15 as T 0012 import org.kde.kirigami 2.4 as Kirigami 0013 0014 T.GroupBox { 0015 id: control 0016 0017 implicitWidth: contentWidth + leftPadding + rightPadding 0018 implicitHeight: 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: 6 0024 topPadding: padding + (label && label.implicitWidth > 0 ? label.implicitHeight + spacing : 0) 0025 0026 label: Label { 0027 x: control.leftPadding 0028 width: control.availableWidth 0029 0030 text: control.title 0031 font: control.font 0032 color: Kirigami.Theme.textColor 0033 elide: Text.ElideRight 0034 horizontalAlignment: Text.AlignLeft 0035 verticalAlignment: Text.AlignVCenter 0036 } 0037 0038 background: Rectangle { 0039 color: "transparent" 0040 property color borderColor: Kirigami.Theme.textColor 0041 border.color: Qt.rgba(borderColor.r, borderColor.g, borderColor.b, 0.3) 0042 } 0043 }