From e1e200955928febe52002f956784071fca1fa887 Mon Sep 17 00:00:00 2001 From: debashbora Date: Thu, 21 Oct 2021 10:14:41 +0530 Subject: [PATCH] Resolve: " Edits In SortButton " --- ScreenPlay/ScreenPlayAssets.qrc | 2 ++ ScreenPlay/assets/icons/icon_date.svg | 1 + ScreenPlay/assets/icons/icon_size.svg | 1 + ScreenPlay/qml/Installed/Navigation.qml | 7 +++++-- 4 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 ScreenPlay/assets/icons/icon_date.svg create mode 100644 ScreenPlay/assets/icons/icon_size.svg diff --git a/ScreenPlay/ScreenPlayAssets.qrc b/ScreenPlay/ScreenPlayAssets.qrc index e4e807c0..f984b3e1 100644 --- a/ScreenPlay/ScreenPlayAssets.qrc +++ b/ScreenPlay/ScreenPlayAssets.qrc @@ -149,5 +149,7 @@ translations/ScreenPlay_it_IT.qm translations/ScreenPlay_it_IT.ts assets/icons/icon_sort_button.svg + assets/icons/icon_date.svg + assets/icons/icon_size.svg diff --git a/ScreenPlay/assets/icons/icon_date.svg b/ScreenPlay/assets/icons/icon_date.svg new file mode 100644 index 00000000..20c24199 --- /dev/null +++ b/ScreenPlay/assets/icons/icon_date.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ScreenPlay/assets/icons/icon_size.svg b/ScreenPlay/assets/icons/icon_size.svg new file mode 100644 index 00000000..69be2b28 --- /dev/null +++ b/ScreenPlay/assets/icons/icon_size.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ScreenPlay/qml/Installed/Navigation.qml b/ScreenPlay/qml/Installed/Navigation.qml index 48384cf7..b41340e4 100644 --- a/ScreenPlay/qml/Installed/Navigation.qml +++ b/ScreenPlay/qml/Installed/Navigation.qml @@ -152,7 +152,8 @@ Item { ToolTip.delay: 100 ToolTip.timeout: 5000 ToolTip.visible: hovered - ToolTip.text: (sortOrder === Qt.AscendingOrder) ? qsTr("Ascending") : qsTr("Descending") + ToolTip.text: (sortOrder === Qt.AscendingOrder) ? qsTr("Ascending") : qsTr( + "Descending") onClicked: { sortOrder = (sortOrder @@ -167,7 +168,7 @@ Item { verticalCenter: parent.verticalCenter } } - Button { + ToolButton { id: sortButton icon.source: "qrc:/assets/icons/icon_sort_button.svg" icon.width: 16 @@ -180,6 +181,7 @@ Item { MenuItem { text: "Date" + icon.source: "qrc:/assets/icons/icon_date.svg" hoverEnabled: true ToolTip.delay: 100 ToolTip.timeout: 5000 @@ -188,6 +190,7 @@ Item { } MenuItem { text: "Size" + icon.source: "qrc:/assets/icons/icon_size.svg" hoverEnabled: true ToolTip.delay: 100 ToolTip.timeout: 5000