mirror of
https://github.com/lubosz/overte.git
synced 2025-08-28 01:58:01 +02:00
Cleanup
This commit is contained in:
parent
769c57208c
commit
4023c40149
6 changed files with 7 additions and 50 deletions
|
@ -65,7 +65,7 @@ Item {
|
|||
text: qsTr("Cancel")
|
||||
|
||||
|
||||
onClicked: root.destroy()
|
||||
onClicked: root.tryDestroy()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -56,7 +56,6 @@ Item {
|
|||
parent.width = root.width = Math.max(d.minWidth, Math.min(d.maxWidth, targetWidth));
|
||||
parent.height = root.height = Math.max(d.minHeight, Math.min(d.maxHeight, targetHeight))
|
||||
+ (keyboardEnabled && keyboardRaised ? (200 + 2 * hifi.dimensions.contentSpacing.y) : hifi.dimensions.contentSpacing.y);
|
||||
console.log("sign in h:", targetHeight, parent.height, form.height)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -233,7 +232,6 @@ Item {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
// Override ScrollingWindow's keyboard that would be at very bottom of dialog.
|
||||
Keyboard {
|
||||
raised: keyboardEnabled && keyboardRaised
|
||||
|
|
|
@ -50,7 +50,6 @@ Item {
|
|||
parent.width = root.width = Math.max(d.minWidth, Math.min(d.maxWidth, targetWidth));
|
||||
parent.height = root.height = Math.max(d.minHeight, Math.min(d.maxHeight, targetHeight))
|
||||
+ (keyboardEnabled && keyboardRaised ? (200 + 2 * hifi.dimensions.contentSpacing.y) : 0);
|
||||
console.log("sign up h:", parent.height, targetHeight, form.height)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -122,7 +122,7 @@ Item {
|
|||
|
||||
text: qsTr("Cancel")
|
||||
|
||||
onClicked: root.destroy()
|
||||
onClicked: root.tryDestroy()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -77,7 +77,7 @@ Item {
|
|||
|
||||
text: qsTr("Close");
|
||||
|
||||
onClicked: root.destroy()
|
||||
onClicked: root.tryDestroy()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -47,8 +47,10 @@ TabletModalWindow {
|
|||
}
|
||||
|
||||
function tryDestroy() {
|
||||
console.log("tryDestroy")
|
||||
canceled()
|
||||
}
|
||||
Component.onDestruction: console.log("root dying")
|
||||
}
|
||||
|
||||
//property int colorScheme: hifi.colorSchemes.dark
|
||||
|
@ -81,7 +83,7 @@ TabletModalWindow {
|
|||
|
||||
onCanceled: {
|
||||
if (bodyLoader.active === true) {
|
||||
bodyLoader.active = false
|
||||
//bodyLoader.active = false
|
||||
}
|
||||
if (gotoPreviousApp) {
|
||||
var tablet = Tablet.getTablet("com.highfidelity.interface.tablet.system");
|
||||
|
@ -96,13 +98,12 @@ TabletModalWindow {
|
|||
id: mfRoot
|
||||
|
||||
width: root.width
|
||||
height: root.height //+ frameMarginTop
|
||||
height: root.height + frameMarginTop + hifi.dimensions.contentMargin.x
|
||||
|
||||
anchors {
|
||||
horizontalCenter: parent.horizontalCenter
|
||||
verticalCenter: parent.verticalCenter
|
||||
}
|
||||
onHeightChanged: console.log("tablet mf h:", height)
|
||||
|
||||
LoginDialog {
|
||||
id: loginDialog
|
||||
|
@ -158,45 +159,4 @@ TabletModalWindow {
|
|||
break
|
||||
}
|
||||
}
|
||||
// LoginDialog {
|
||||
// id: loginDialog
|
||||
// width: parent.width
|
||||
// height: parent.height
|
||||
// StackView {
|
||||
// id: bodyLoader
|
||||
// property var item: currentItem
|
||||
// property var props
|
||||
// property string source: ""
|
||||
|
||||
// onCurrentItemChanged: {
|
||||
// //cleanup source for future usage
|
||||
// source = ""
|
||||
// }
|
||||
|
||||
// function setSource(src, props) {
|
||||
// source = "../TabletLoginDialog/" + src
|
||||
// bodyLoader.props = props
|
||||
// }
|
||||
// function popup() {
|
||||
// bodyLoader.pop()
|
||||
|
||||
// //check if last screen, if yes, dialog is popped out
|
||||
// if (depth === 1)
|
||||
// loginDialogRoot.canceled()
|
||||
// }
|
||||
|
||||
// anchors.fill: parent
|
||||
// anchors.margins: 10
|
||||
// onSourceChanged: {
|
||||
// if (source !== "") {
|
||||
// bodyLoader.push(Qt.resolvedUrl(source), props)
|
||||
// }
|
||||
// }
|
||||
// Component.onCompleted: {
|
||||
// setSource(loginDialog.isSteamRunning() ?
|
||||
// "SignInBody.qml" :
|
||||
// "LinkAccountBody.qml")
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue