Warning, /frameworks/qqc2-desktop-style/org.kde.desktop/ToolSeparator.qml is written in an unsupported language. File is not indexed.

0001 /*
0002     SPDX-FileCopyrightText: 2020 Noah Davis <noahadvs@gmail.com>
0003 
0004     SPDX-License-Identifier: LGPL-3.0-only OR GPL-2.0-or-later
0005 */
0006 
0007 
0008 import QtQuick
0009 import QtQuick.Templates as T
0010 import org.kde.kirigami as Kirigami
0011 
0012 T.ToolSeparator {
0013     id: controlRoot
0014 
0015     implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
0016                             implicitContentWidth + leftPadding + rightPadding)
0017     implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
0018                              implicitContentHeight + topPadding + bottomPadding)
0019 
0020     contentItem: Kirigami.Separator {
0021         // implicitHeight is the same as ToolBar implicitHeight minus ToolBar padding if not horizontal
0022         implicitWidth: !horizontal ? 1 : 40 - (Kirigami.Units.smallSpacing * 2)
0023         implicitHeight: horizontal ? 1 : 40 - (Kirigami.Units.smallSpacing * 2)
0024     }
0025 }