Add tooltips and update help text

This commit is contained in:
Cameron Gutman
2018-11-04 14:36:12 -08:00
parent 011edfe2a0
commit 037886ba5b
+13 -1
View File
@@ -64,7 +64,7 @@ ScrollView {
Label { Label {
width: parent.width width: parent.width
id: resFPSdesc id: resFPSdesc
text: qsTr("Setting values too high for your PC may cause lag, stuttering, or errors.") text: qsTr("Setting values too high for your PC or network connection may cause lag, stuttering, or errors.")
font.pointSize: 9 font.pointSize: 9
wrapMode: Text.Wrap wrapMode: Text.Wrap
color: "white" color: "white"
@@ -329,6 +329,7 @@ ScrollView {
} }
id: windowModeComboBox id: windowModeComboBox
hoverEnabled: true
textRole: "text" textRole: "text"
model: ListModel { model: ListModel {
id: windowModeListModel id: windowModeListModel
@@ -348,16 +349,27 @@ ScrollView {
onActivated: { onActivated: {
prefs.windowMode = windowModeListModel.get(currentIndex).val prefs.windowMode = windowModeListModel.get(currentIndex).val
} }
ToolTip.delay: 1000
ToolTip.timeout: 5000
ToolTip.visible: hovered
ToolTip.text: "Full-screen generally provides the best performance, but borderless windowed may work better with features like macOS Spaces, Alt+Tab, screenshot tools, on-screen overlays, etc."
} }
CheckBox { CheckBox {
id: vsyncCheck id: vsyncCheck
hoverEnabled: true
text: "<font color=\"white\">Enable V-Sync</font>" text: "<font color=\"white\">Enable V-Sync</font>"
font.pointSize: 12 font.pointSize: 12
checked: prefs.enableVsync checked: prefs.enableVsync
onCheckedChanged: { onCheckedChanged: {
prefs.enableVsync = checked prefs.enableVsync = checked
} }
ToolTip.delay: 1000
ToolTip.timeout: 5000
ToolTip.visible: hovered
ToolTip.text: "Disabling V-Sync allows sub-frame rendering latency, but it can display visible tearing"
} }
} }
} }