mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 03:13:09 +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
|
//FIXME implement shortcuts for favorite location
|
||||||
ModalWindow {
|
ModalWindow {
|
||||||
id: root
|
id: root
|
||||||
//resizable: true
|
resizable: true
|
||||||
implicitWidth: 640
|
implicitWidth: 640
|
||||||
implicitHeight: 480
|
implicitHeight: 480
|
||||||
|
|
||||||
|
|
|
@ -18,13 +18,13 @@ Frame {
|
||||||
HifiConstants { id: hifi }
|
HifiConstants { id: hifi }
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: modalFrame
|
id: frameContent
|
||||||
|
|
||||||
readonly property bool hasTitle: window.title != ""
|
readonly property bool hasTitle: window.title != ""
|
||||||
|
|
||||||
anchors {
|
anchors {
|
||||||
fill: parent
|
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
|
leftMargin: -hifi.dimensions.modalDialogMargin.x
|
||||||
rightMargin: -hifi.dimensions.modalDialogMargin.x
|
rightMargin: -hifi.dimensions.modalDialogMargin.x
|
||||||
bottomMargin: -hifi.dimensions.modalDialogMargin.y
|
bottomMargin: -hifi.dimensions.modalDialogMargin.y
|
||||||
|
@ -38,7 +38,7 @@ Frame {
|
||||||
color: hifi.colors.faintGray
|
color: hifi.colors.faintGray
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
visible: modalFrame.hasTitle
|
visible: frameContent.hasTitle
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors {
|
anchors {
|
||||||
topMargin: -parent.anchors.topMargin
|
topMargin: -parent.anchors.topMargin
|
||||||
|
|
Loading…
Reference in a new issue