mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
Make file browser dialog resizable
This commit is contained in:
parent
b9aa667c55
commit
66a90cc3f8
2 changed files with 4 additions and 4 deletions
|
@ -25,7 +25,7 @@ import "fileDialog"
|
|||
//FIXME implement shortcuts for favorite location
|
||||
ModalWindow {
|
||||
id: root
|
||||
//resizable: true
|
||||
resizable: true
|
||||
implicitWidth: 640
|
||||
implicitHeight: 480
|
||||
|
||||
|
|
|
@ -18,13 +18,13 @@ Frame {
|
|||
HifiConstants { id: hifi }
|
||||
|
||||
Rectangle {
|
||||
id: modalFrame
|
||||
id: frameContent
|
||||
|
||||
readonly property bool hasTitle: window.title != ""
|
||||
|
||||
anchors {
|
||||
fill: parent
|
||||
topMargin: -hifi.dimensions.modalDialogMargin.y - (modalFrame.hasTitle ? hifi.dimensions.modalDialogTitleHeight + 10 : 0)
|
||||
topMargin: -hifi.dimensions.modalDialogMargin.y - (frameContent.hasTitle ? hifi.dimensions.modalDialogTitleHeight + 10 : 0)
|
||||
leftMargin: -hifi.dimensions.modalDialogMargin.x
|
||||
rightMargin: -hifi.dimensions.modalDialogMargin.x
|
||||
bottomMargin: -hifi.dimensions.modalDialogMargin.y
|
||||
|
@ -38,7 +38,7 @@ Frame {
|
|||
color: hifi.colors.faintGray
|
||||
|
||||
Item {
|
||||
visible: modalFrame.hasTitle
|
||||
visible: frameContent.hasTitle
|
||||
anchors.fill: parent
|
||||
anchors {
|
||||
topMargin: -parent.anchors.topMargin
|
||||
|
|
Loading…
Reference in a new issue