mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
No need to track open popups anymore. Avoid widgets to include services directly
This commit is contained in:
@@ -26,14 +26,6 @@ Popup {
|
||||
|
||||
modal: true
|
||||
|
||||
onOpened: {
|
||||
PanelService.willOpenPopup(root)
|
||||
}
|
||||
|
||||
onClosed: {
|
||||
PanelService.willClosePopup(root)
|
||||
}
|
||||
|
||||
function rgbToHsv(r, g, b) {
|
||||
r /= 255
|
||||
g /= 255
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user