No need to track open popups anymore. Avoid widgets to include services directly

This commit is contained in:
ItsLemmy
2025-11-08 22:37:19 -05:00
parent 373398236a
commit 8b7ec73fdf
10 changed files with 1 additions and 73 deletions
-8
View File
@@ -26,14 +26,6 @@ Popup {
modal: true
onOpened: {
PanelService.willOpenPopup(root)
}
onClosed: {
PanelService.willClosePopup(root)
}
function rgbToHsv(r, g, b) {
r /= 255
g /= 255
-8
View File
@@ -108,14 +108,6 @@ RowLayout {
implicitHeight: Math.min(root.popupHeight, contentItem.implicitHeight + Style.marginM * 2)
padding: Style.marginM
onOpened: {
PanelService.willOpenPopup(root)
}
onClosed: {
PanelService.willClosePopup(root)
}
contentItem: NListView {
model: combo.popup.visible ? root.model : null
implicitHeight: contentHeight
-3
View File
@@ -17,9 +17,6 @@ Popup {
width: 180
padding: Style.marginS
onOpened: PanelService.willOpenPopup(root)
onClosed: PanelService.willClosePopup(root)
background: Rectangle {
color: Color.mSurfaceVariant
border.color: Color.mOutline
-8
View File
@@ -27,14 +27,6 @@ Popup {
signal accepted(var paths)
signal cancelled
onOpened: {
PanelService.willOpenPopup(root)
}
onClosed: {
PanelService.willClosePopup(root)
}
function openFilePicker() {
if (!root.currentPath)
root.currentPath = root.initialPath
-6
View File
@@ -4,7 +4,6 @@ import QtQuick.Layouts
import QtQuick.Window
import qs.Commons
import qs.Widgets
import qs.Services.UI
Popup {
id: root
@@ -36,11 +35,6 @@ Popup {
selectedIcon = initialIcon
query = initialIcon
searchInput.forceActiveFocus()
PanelService.willOpenPopup(root)
}
onClosed: {
PanelService.willClosePopup(root)
}
background: Rectangle {
-8
View File
@@ -158,14 +158,6 @@ RowLayout {
height: root.popupHeight + 60
padding: Style.marginM
onOpened: {
PanelService.willOpenPopup(root)
}
onClosed: {
PanelService.willClosePopup(root)
}
contentItem: ColumnLayout {
spacing: Style.marginS