mirror of
https://github.com/overte-org/overte.git
synced 2025-04-29 18:02:35 +02:00
Conflicts: interface/resources/qml/HifiMenu.qml interface/resources/qml/MessageDialog.qml interface/resources/qml/Root.qml interface/resources/qml/TestRoot.qml interface/resources/qml/controls/Dialog.qml interface/src/Application.cpp interface/src/ui/LoginDialog.cpp libraries/ui/src/MessageDialog.cpp libraries/ui/src/MessageDialog.h libraries/ui/src/OffscreenQmlDialog.h libraries/ui/src/OffscreenUi.cpp libraries/ui/src/OffscreenUi.h tests/ui/src/main.cpp
44 lines
959 B
QML
44 lines
959 B
QML
import Hifi 1.0
|
|
import QtQuick 2.3
|
|
import QtQuick.Controls 1.3
|
|
// Import local folder last so that our own control customizations override
|
|
// the built in ones
|
|
import "controls"
|
|
|
|
Root {
|
|
id: root
|
|
anchors.fill: parent
|
|
onParentChanged: {
|
|
forceActiveFocus();
|
|
}
|
|
|
|
Button {
|
|
id: messageBox
|
|
anchors.right: createDialog.left
|
|
anchors.rightMargin: 24
|
|
anchors.bottom: parent.bottom
|
|
anchors.bottomMargin: 24
|
|
text: "Message"
|
|
onClicked: {
|
|
console.log("Foo")
|
|
root.information("a")
|
|
console.log("Bar")
|
|
}
|
|
}
|
|
Button {
|
|
id: createDialog
|
|
anchors.right: parent.right
|
|
anchors.rightMargin: 24
|
|
anchors.bottom: parent.bottom
|
|
anchors.bottomMargin: 24
|
|
text: "Create"
|
|
onClicked: {
|
|
root.loadChild("MenuTest.qml");
|
|
}
|
|
}
|
|
|
|
Keys.onPressed: {
|
|
console.log(event.key);
|
|
}
|
|
}
|
|
|