Files
OpenVR-AdvancedSettings-frame/src/res/qml/common/HourComboBox.qml
T
ykearaandJames R 65b5aace06 5.6.2 (#612)
* add nlhomann json header

* add get scene app fn

* add get current binding and related logic

* add save binding file to settings folder

* apply binding fn added fixed uid bug

* add button logic to QML, add enable Bind Setting

* add finding logic for all custom bind

* fix minor qml issues

* fix get controllername bug, fix bug with save bind

* fix regex issue

* change webrequest for selectconfig

* change to properly urlify path to send

* fix race condition web requests

* change steamvr tab qml formatting

* change color scheme

* change colors of icons to text color

* change bind qml better for better ux

* add possible workaround for space drag issues

* add deact color to pushbutton

* increment version

* adjust button size in movecenter

* move nlhomann json

* fix PKGBUILD to include missing dependency (#606) (#613)

It turns out qt5-websockets needs to be included for a successful build.

Co-authored-by: James R <71466513+ColdIce1605@users.noreply.github.com>

* fix warning

* improved logging messages around perapp bindings

* improve getsceneappID logging

* add HMD based controller Finding

* improve logging controller name

* change logging around initial chaperone calibration

* increment version

* improve logging/error handling around sceneappid failures

* added fallback for getting scene app by pid

* update version string

* update documentation

Co-authored-by: James R <71466513+ColdIce1605@users.noreply.github.com>
2022-07-28 16:44:22 -05:00

50 lines
1.4 KiB
QML

import QtQuick 2.7
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.3
import ovras.advsettings 1.0
MyComboBox {
model: [
{ value: 0, text: "00" },
{ value: 1, text: "01" },
{ value: 2, text: "02" },
{ value: 3, text: "03" },
{ value: 4, text: "04" },
{ value: 5, text: "05" },
{ value: 6, text: "06" },
{ value: 7, text: "07" },
{ value: 8, text: "08" },
{ value: 9, text: "09" },
{ value: 10, text: "10" },
{ value: 11, text: "11" },
{ value: 12, text: "12" },
{ value: 13, text: "13" },
{ value: 14, text: "14" },
{ value: 15, text: "15" },
{ value: 16, text: "16" },
{ value: 17, text: "17" },
{ value: 18, text: "18" },
{ value: 19, text: "19" },
{ value: 20, text: "20" },
{ value: 21, text: "21" },
{ value: 22, text: "22" },
{ value: 23, text: "23" },
]
delegate: ItemDelegate {
width: parent.width
text: modelData.text
hoverEnabled: true
contentItem: MyText {
horizontalAlignment: Text.AlignLeft
verticalAlignment: Text.AlignVCenter
text: parent.text
color: parent.enabled ? "#d9dbe0" : "#65676b"
}
background: Rectangle {
color: parent.pressed ? "#282b31" : (parent.hovered ? "#484f5b" : "#2a2e35")
}
}
}