mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 19:50:38 +02:00
update qml file to show the current OpenVr headset
This commit is contained in:
parent
1bae22fed0
commit
95e14446dd
3 changed files with 13 additions and 11 deletions
|
@ -17,6 +17,7 @@ StackView {
|
|||
id: stack
|
||||
initialItem: inputConfiguration
|
||||
property alias messageVisible: imageMessageBox.visible
|
||||
property alias selectedPlugin: box.currentText
|
||||
Rectangle {
|
||||
id: inputConfiguration
|
||||
anchors.fill: parent
|
||||
|
|
|
@ -107,7 +107,7 @@ Rectangle {
|
|||
|
||||
RalewayBold {
|
||||
size: 12
|
||||
text: "Vive HMD"
|
||||
text: stack.selectedPlugin + " HMD"
|
||||
color: hifi.colors.lightGrayText
|
||||
}
|
||||
|
||||
|
@ -815,7 +815,7 @@ Rectangle {
|
|||
RalewayBold {
|
||||
id: viveDesktopText
|
||||
size: 10
|
||||
text: "Use Vive devices in desktop mode"
|
||||
text: "Use " + stack.selectedPlugin + " devices in desktop mode"
|
||||
color: hifi.colors.white
|
||||
|
||||
anchors {
|
||||
|
|
|
@ -32,7 +32,8 @@ QStringList InputConfiguration::inputPlugins() {
|
|||
for (auto plugin : PluginManager::getInstance()->getInputPlugins()) {
|
||||
QString pluginName = plugin->getName();
|
||||
if (pluginName == QString("OpenVR")) {
|
||||
inputPlugins << QString("Vive");
|
||||
QString headsetName = plugin->getDeviceName();
|
||||
inputPlugins << headsetName;
|
||||
} else {
|
||||
inputPlugins << pluginName;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue