diff --git a/org.kde.desktop/MenuSeparator.qml b/org.kde.desktop/MenuSeparator.qml new file mode 100644 --- /dev/null +++ b/org.kde.desktop/MenuSeparator.qml @@ -0,0 +1,38 @@ +/* + * Copyright 2019 Alexander Stippich + * Copyright 2017 The Qt Company Ltd. + * + * GNU Lesser General Public License Usage + * Alternatively, this file may be used under the terms of the GNU Lesser + * General Public License version 3 as published by the Free Software + * Foundation and appearing in the file LICENSE.LGPLv3 included in the + * packaging of this file. Please review the following information to + * ensure the GNU Lesser General Public License version 3 requirements + * will be met: https://www.gnu.org/licenses/lgpl.html. + * + * GNU General Public License Usage + * Alternatively, this file may be used under the terms of the GNU + * General Public License version 2.0 or later as published by the Free + * Software Foundation and appearing in the file LICENSE.GPL included in + * the packaging of this file. Please review the following information to + * ensure the GNU General Public License version 2.0 requirements will be + * met: http://www.gnu.org/licenses/gpl-2.0.html. + */ + + +import QtQuick 2.6 +import QtQuick.Templates @QQC2_VERSION@ as T +import org.kde.kirigami 2.4 as Kirigami + +T.MenuSeparator { + id: controlRoot + + implicitHeight: Kirigami.Units.smallSpacing + separator.height + width: parent.width + + background: Kirigami.Separator { + id: separator + anchors.centerIn: controlRoot + width: controlRoot.width + } +}