From e97f1c5e37f46b333e93171a616d9ff983541598 Mon Sep 17 00:00:00 2001 From: Khushboo Mehta Date: Tue, 26 Oct 2021 11:24:45 +0200 Subject: [PATCH] refactor: remove unsed component --- ui/shared/status/StatusSectionMenuItem.qml | 79 ---------------------- ui/shared/status/qmldir | 1 - 2 files changed, 80 deletions(-) delete mode 100644 ui/shared/status/StatusSectionMenuItem.qml diff --git a/ui/shared/status/StatusSectionMenuItem.qml b/ui/shared/status/StatusSectionMenuItem.qml deleted file mode 100644 index 74bc5e89a6..0000000000 --- a/ui/shared/status/StatusSectionMenuItem.qml +++ /dev/null @@ -1,79 +0,0 @@ -import QtQuick 2.13 -import QtQuick.Controls 2.13 -import QtQuick.Layouts 1.13 -import QtGraphicalEffects 1.13 - -import utils 1.0 -import "../../shared" -import "../../shared/panels" - -Button { - id: control - property string label: "" - property string description: "" - property string info: "" - - width: parent.width - horizontalPadding: 0 - - background: Rectangle { - anchors.fill: parent - color: "transparent" - } - - contentItem: RowLayout { - id: item - width: parent.width - - Column { - spacing: 2 - - StyledText { - text: control.label - font.pixelSize: 15 - } - - StyledText { - text: control.description - color: Style.current.secondaryText - font.pixelSize: 15 - } - } - - Item { - Layout.alignment: Qt.AlignRight - height: info.height - StyledText { - id: info - text: control.info - color: Style.current.secondaryText - font.pixelSize: 15 - anchors.right: icon.left - anchors.rightMargin: icon.width + Style.current.padding - } - - SVGImage { - id: icon - source: Style.svg("caret") - width: 13 - height: 7 - rotation: -90 - anchors.verticalCenter: parent.verticalCenter - } - - ColorOverlay { - anchors.fill: icon - source: icon - color: Style.current.darkGrey - rotation: -90 - antialiasing: true - } - } - } - - MouseArea { - cursorShape: Qt.PointingHandCursor - anchors.fill: parent - onPressed: mouse.accepted = false - } -} diff --git a/ui/shared/status/qmldir b/ui/shared/status/qmldir index 8948b0022e..ac42335caf 100644 --- a/ui/shared/status/qmldir +++ b/ui/shared/status/qmldir @@ -11,7 +11,6 @@ StatusImageIdenticon 1.0 StatusImageIdenticon.qml StatusRadioButton 1.0 StatusRadioButton.qml StatusRoundButton 1.0 StatusRoundButton.qml StatusSectionHeadline 1.0 StatusSectionHeadline.qml -StatusSectionMenuItem 1.0 StatusSectionMenuItem.qml StatusSlider 1.0 StatusSlider.qml StatusStickerButton 1.0 StatusStickerButton.qml StatusStickerList 1.0 StatusStickerList.qml