Warning, /frameworks/qqc2-desktop-style/org.kde.desktop/Container.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.kirigami 2.4 as Kirigami
0012 
0013 T.Container {
0014     id: control
0015 
0016     implicitWidth: Math.max(background ? background.implicitWidth : 0,
0017                             (contentItem ? contentItem.implicitWidth : 0) + leftPadding + rightPadding)
0018     implicitHeight: Math.max(background ? background.implicitHeight : 0,
0019                              (contentItem ? contentItem.implicitHeight : 0) + topPadding + bottomPadding)
0020 }