forked from qt-creator/qt-creator
QmlDesigner: Fix sticky popups
Task-number: QTCREATORBUG-23102 Change-Id: I53a2abc67221b714e2b4ff7d09045f0b817b59d2 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Henning Gründl
parent
6ee83b4c19
commit
f80b676e4a
@@ -185,7 +185,9 @@ T.ComboBox {
|
|||||||
StudioTheme.Values.maxComboBoxPopupHeight)
|
StudioTheme.Values.maxComboBoxPopupHeight)
|
||||||
padding: StudioTheme.Values.border
|
padding: StudioTheme.Values.border
|
||||||
margins: 0 // If not defined margin will be -1
|
margins: 0 // If not defined margin will be -1
|
||||||
closePolicy: T.Popup.CloseOnEscape | T.Popup.CloseOnPressOutsideParent
|
closePolicy: T.Popup.CloseOnPressOutside | T.Popup.CloseOnPressOutsideParent
|
||||||
|
| T.Popup.CloseOnEscape | T.Popup.CloseOnReleaseOutside
|
||||||
|
| T.Popup.CloseOnReleaseOutsideParent
|
||||||
|
|
||||||
contentItem: ListView {
|
contentItem: ListView {
|
||||||
clip: true
|
clip: true
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
**
|
**
|
||||||
** Copyright (C) 2019 The Qt Company Ltd.
|
** Copyright (C) 2019 The Qt Company Ltd.
|
||||||
@@ -22,7 +24,6 @@
|
|||||||
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
import QtQuick 2.12
|
import QtQuick 2.12
|
||||||
import QtQuick.Window 2.12
|
import QtQuick.Window 2.12
|
||||||
import QtQuick.Templates 2.12 as T
|
import QtQuick.Templates 2.12 as T
|
||||||
@@ -43,10 +44,11 @@ T.Menu {
|
|||||||
overlap: 1
|
overlap: 1
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
closePolicy: T.Popup.CloseOnPressOutside | T.Popup.CloseOnPressOutsideParent | T.Popup.CloseOnEscape
|
closePolicy: T.Popup.CloseOnPressOutside | T.Popup.CloseOnPressOutsideParent
|
||||||
|
| T.Popup.CloseOnEscape | T.Popup.CloseOnReleaseOutside
|
||||||
|
| T.Popup.CloseOnReleaseOutsideParent
|
||||||
|
|
||||||
delegate: MenuItem {
|
delegate: MenuItem {}
|
||||||
}
|
|
||||||
|
|
||||||
contentItem: ListView {
|
contentItem: ListView {
|
||||||
model: control.contentModel
|
model: control.contentModel
|
||||||
|
@@ -33,7 +33,9 @@ T.Popup {
|
|||||||
property T.Control myControl
|
property T.Control myControl
|
||||||
|
|
||||||
dim: false
|
dim: false
|
||||||
closePolicy: T.Popup.CloseOnEscape | T.Popup.CloseOnPressOutsideParent
|
closePolicy: T.Popup.CloseOnPressOutside | T.Popup.CloseOnPressOutsideParent
|
||||||
|
| T.Popup.CloseOnEscape | T.Popup.CloseOnReleaseOutside
|
||||||
|
| T.Popup.CloseOnReleaseOutsideParent
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
color: StudioTheme.Values.themeControlBackground
|
color: StudioTheme.Values.themeControlBackground
|
||||||
|
Reference in New Issue
Block a user