Removing close button on tool window, fixing dragging

This commit is contained in:
Brad Davis 2016-01-14 14:20:31 -08:00
parent b6272b7824
commit e76e13c05c
2 changed files with 3 additions and 1 deletions

View file

@ -13,6 +13,7 @@ Windows.Window {
objectName: "ToolWindow"
destroyOnCloseButton: false
destroyOnInvisible: false
closable: false
visible: false
property string newTabSource
property alias tabView: tabView

View file

@ -27,7 +27,8 @@ Frame {
Rectangle {
id: decoration
anchors { margins: -iconSize; topMargin: -iconSize * (window.closable ? 2 : 1); }
visible: window.activator.containsMouse
// FIXME doesn't work
// visible: window.activator.containsMouse
anchors.fill: parent;
color: "#7f7f7f7f";
radius: 3;