mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-29 12:39:55 +02:00
commit
bff3362f94
4 changed files with 19 additions and 1 deletions
|
@ -108,7 +108,7 @@ Window {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
WebEngineView {
|
WebView {
|
||||||
id: webview
|
id: webview
|
||||||
url: "http://highfidelity.com"
|
url: "http://highfidelity.com"
|
||||||
anchors.top: buttons.bottom
|
anchors.top: buttons.bottom
|
||||||
|
@ -124,6 +124,12 @@ Window {
|
||||||
onIconChanged: {
|
onIconChanged: {
|
||||||
console.log("New icon: " + icon)
|
console.log("New icon: " + icon)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
profile: WebEngineProfile {
|
||||||
|
id: webviewProfile
|
||||||
|
storageName: "qmlUserBrowser"
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
} // item
|
} // item
|
||||||
|
|
||||||
|
|
|
@ -62,6 +62,13 @@ Window {
|
||||||
|
|
||||||
sections.push(sectionBuilder.createObject(prefControls, { name: category }));
|
sections.push(sectionBuilder.createObject(prefControls, { name: category }));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (sections.length) {
|
||||||
|
sections[0].expanded = true;
|
||||||
|
if (sections.length === 1) {
|
||||||
|
sections[0].collapsable = false
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Flickable {
|
Flickable {
|
||||||
|
|
|
@ -7,6 +7,7 @@ import "."
|
||||||
|
|
||||||
Preference {
|
Preference {
|
||||||
id: root
|
id: root
|
||||||
|
property bool collapsable: true
|
||||||
property bool expanded: false
|
property bool expanded: false
|
||||||
property string name: "Header"
|
property string name: "Header"
|
||||||
property real spacing: 8
|
property real spacing: 8
|
||||||
|
@ -42,7 +43,10 @@ Preference {
|
||||||
|
|
||||||
VrControls.FontAwesome {
|
VrControls.FontAwesome {
|
||||||
id: toggle
|
id: toggle
|
||||||
|
width: root.collapsable ? height : 0
|
||||||
anchors { left: parent.left; top: parent.top; margins: root.spacing }
|
anchors { left: parent.left; top: parent.top; margins: root.spacing }
|
||||||
|
visible: root.collapsable
|
||||||
|
enabled: root.collapsable
|
||||||
rotation: root.expanded ? 0 : -90
|
rotation: root.expanded ? 0 : -90
|
||||||
text: "\uf078"
|
text: "\uf078"
|
||||||
Behavior on rotation { PropertyAnimation {} }
|
Behavior on rotation { PropertyAnimation {} }
|
||||||
|
|
|
@ -20,6 +20,7 @@ DISTFILES += \
|
||||||
../../interface/resources/qml/controls/*.qml \
|
../../interface/resources/qml/controls/*.qml \
|
||||||
../../interface/resources/qml/dialogs/*.qml \
|
../../interface/resources/qml/dialogs/*.qml \
|
||||||
../../interface/resources/qml/dialogs/fileDialog/*.qml \
|
../../interface/resources/qml/dialogs/fileDialog/*.qml \
|
||||||
|
../../interface/resources/qml/dialogs/preferences/*.qml \
|
||||||
../../interface/resources/qml/desktop/*.qml \
|
../../interface/resources/qml/desktop/*.qml \
|
||||||
../../interface/resources/qml/menus/*.qml \
|
../../interface/resources/qml/menus/*.qml \
|
||||||
../../interface/resources/qml/styles/*.qml \
|
../../interface/resources/qml/styles/*.qml \
|
||||||
|
|
Loading…
Reference in a new issue