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 0010 import QtQuick.Controls 0011 import QtQuick.Templates as T 0012 import org.kde.kirigami as Kirigami 0013 0014 T.GroupBox { 0015 id: control 0016 0017 implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset, 0018 contentWidth + leftPadding + rightPadding, 0019 implicitLabelWidth + leftPadding + rightPadding) 0020 implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset, 0021 contentHeight + topPadding + bottomPadding) 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 border.color: Kirigami.ColorUtils.linearInterpolation(Kirigami.Theme.backgroundColor, Kirigami.Theme.textColor, Kirigami.Theme.frameContrast) 0041 } 0042 }