File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,9 +33,6 @@ Window {
3333 property real leftPadding: DS .Style .dialogWindow .contentHMargin
3434 property real rightPadding: DS .Style .dialogWindow .contentHMargin
3535
36- property var transientParentWindow: null
37- transientParent: transientParentWindow
38-
3936 Item {
4037 id: content
4138 palette: control .active ? D .DTK .palette : D .DTK .inactivePalette
@@ -63,30 +60,6 @@ Window {
6360 }
6461 }
6562
66- function updateTransientParent () {
67- if (control .modality !== Qt .WindowModal )
68- return
69- if (! transientParentWindow || transientParentWindow === control) {
70- var candidate = Qt .application .activeWindow
71- if (candidate && candidate !== control)
72- transientParentWindow = candidate
73- }
74- }
75-
76- Component .onCompleted : {
77- updateTransientParent ()
78- }
79-
80- onVisibleChanged: {
81- if (! control .visible )
82- return
83- updateTransientParent ()
84- Qt .callLater (function () {
85- control .raise ()
86- control .requestActivate ()
87- })
88- }
89-
9063 onClosing : function (close ) {
9164 // close can't reset sub control's hovered state. pms Bug:168405
9265 // if we need to close, we can add closing handler to set `close.acceped = true`
You can’t perform that action at this time.
0 commit comments