Libplasma

MenuSeparator.qml
1/*
2 SPDX-FileCopyrightText: 2017 The Qt Company Ltd.
3 SPDX-FileCopyrightText: 2019 Alexander Stippich <a.stippich@gmx.net>
4 SPDX-FileCopyrightText: 2021 Noah Davis <noahadvs@gmail.com>
5
6 SPDX-License-Identifier: LGPL-3.0-only OR GPL-2.0-or-later
7*/
8
9
10import QtQuick
11import QtQuick.Templates as T
12import org.kde.kirigami as Kirigami
13
14T.MenuSeparator {
15 id: controlRoot
16 implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
17 implicitContentWidth + leftPadding + rightPadding)
18 implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
19 implicitContentHeight + topPadding + bottomPadding)
20 verticalPadding: Math.round(Kirigami.Units.smallSpacing / 2)
21 hoverEnabled: false
22 focusPolicy: Qt.NoFocus
23 contentItem: Rectangle {
24 // same as MenuItem background
25 implicitWidth: Kirigami.Units.gridUnit * 8
26 implicitHeight: 1
27 color: Kirigami.Theme.textColor
28 opacity: 0.2
29 }
30}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:34:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.