Fix invisible tabbar from eating hover events

Fixes #214
This commit is contained in:
Sergio Martins
2021-07-02 16:04:08 +01:00
parent 966f30e356
commit 00a95ac468

View File

@@ -20,7 +20,7 @@ Rectangle {
property QtObject frameCpp property QtObject frameCpp
readonly property QtObject titleBarCpp: frameCpp ? frameCpp.titleBar : null readonly property QtObject titleBarCpp: frameCpp ? frameCpp.titleBar : null
readonly property int nonContentsHeight: (titleBar.item ? titleBar.item.heightWhenVisible : 0) + tabbar.height + (2 * contentsMargin) + titleBarContentsMargin readonly property int nonContentsHeight: (titleBar.item ? titleBar.item.heightWhenVisible : 0) + tabbar.implicitHeight + (2 * contentsMargin) + titleBarContentsMargin
property int contentsMargin: isMDI ? 2 : 1 property int contentsMargin: isMDI ? 2 : 1
property int titleBarContentsMargin: 1 property int titleBarContentsMargin: 1
property bool hasCustomMouseEventRedirector: false property bool hasCustomMouseEventRedirector: false
@@ -208,6 +208,8 @@ Rectangle {
: null : null
visible: count > 1 visible: count > 1
height: visible ? implicitHeight : 0
anchors { anchors {
left: parent ? parent.left : undefined left: parent ? parent.left : undefined
right: parent ? parent.right : undefined right: parent ? parent.right : undefined