making code review changes

This commit is contained in:
Dante Ruiz 2018-06-13 17:58:10 -07:00
parent 5d570f030f
commit eb01b50e6f

View File

@ -69,7 +69,7 @@ Item {
id: stack id: stack
initialItem: inputConfiguration initialItem: inputConfiguration
property alias messageVisible: imageMessageBox.visible property alias messageVisible: imageMessageBox.visible
property alias selectedPlugin: box.currentText property alias selectedPlugin: box.textAt(box.currentIndex)
Rectangle { Rectangle {
id: inputConfiguration id: inputConfiguration
anchors { anchors {
@ -229,10 +229,10 @@ Item {
id: loader id: loader
asynchronous: false asynchronous: false
anchors.fill: parent anchors.fill: parent
source: InputConfiguration.configurationLayout(box.currentText); source: InputConfiguration.configurationLayout(box.textAt(box.currentIndex));
onLoaded: { onLoaded: {
if (loader.item.hasOwnProperty("pluginName")) { if (loader.item.hasOwnProperty("pluginName")) {
if (box.currentText === "HTC Vive") { if (box.textAt(box.currentIndex) === "HTC Vive") {
loader.item.pluginName = "OpenVR"; loader.item.pluginName = "OpenVR";
} else { } else {
loader.item.pluginName = box.textAt(box.currentIndex); loader.item.pluginName = box.textAt(box.currentIndex);