diff --git a/qt6/src/qml/Menu.qml b/qt6/src/qml/Menu.qml index b3a07729b..56dd306e5 100644 --- a/qt6/src/qml/Menu.qml +++ b/qt6/src/qml/Menu.qml @@ -11,6 +11,7 @@ import org.deepin.dtk.style 1.0 as DS T.Menu { id: control + popupType: T.Popup.Window property bool closeOnInactive: true property int maxVisibleItems : DS.Style.arrowListView.maxVisibleItems diff --git a/qt6/src/qml/Popup.qml b/qt6/src/qml/Popup.qml index 6b8613332..1a7ff89e0 100644 --- a/qt6/src/qml/Popup.qml +++ b/qt6/src/qml/Popup.qml @@ -10,6 +10,7 @@ import org.deepin.dtk.style 1.0 as DS T.Popup { id: control + popupType: T.Popup.Window palette: D.DTK.palette focus: popupType === Popup.Window