1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-07 03:22:33 +01:00

Remove decoder option. There is no way to set this via QWebEngine

This commit is contained in:
kelteseth 2018-08-25 00:59:56 +02:00
parent 6d1182acba
commit 698dbeddf0

View File

@ -9,23 +9,6 @@ Item {
id: settingsWrapper id: settingsWrapper
anchors.fill: parent anchors.fill: parent
Connections {
target: screenPlaySettings
onDecoderChanged: {
if (decoder === "CUDA") {
settingsComboBox.currentIndex = 0
} else if (decoder === "D3D11") {
settingsComboBox.currentIndex = 1
} else if (decoder === "DXVA") {
settingsComboBox.currentIndex = 2
} else if (decoder === "VAAPI") {
settingsComboBox.currentIndex = 3
} else if (decoder === "FFmpeg") {
settingsComboBox.currentIndex = 4
}
}
}
Flickable { Flickable {
id: flickableWrapper id: flickableWrapper
width: 800 width: 800
@ -180,7 +163,7 @@ Item {
Item { Item {
id: settingsPerformanceWrapper id: settingsPerformanceWrapper
height: 300 height: 220
width: parent.width width: parent.width
RectangularGlow { RectangularGlow {
@ -237,37 +220,6 @@ Item {
} }
SettingsHorizontalSeperator { SettingsHorizontalSeperator {
} }
SettingsComboBox {
id: settingsComboBox
headline: qsTr("Default decoder")
description: qsTr("ScreenPlay supports different encoders for different hardware requirements.")
onCurrentIndexChanged: {
screenPlaySettings.setDecoder(
settingsComboBox.comboBoxListModel.get(
settingsComboBox.currentIndex).text.toString(
))
}
comboBoxListModel: ListModel {
id: model
ListElement {
text: "CUDA"
}
ListElement {
text: "D3D11"
}
ListElement {
text: "DXVA"
}
ListElement {
text: "VAAPI"
}
ListElement {
text: "FFmpeg"
}
}
}
SettingsHorizontalSeperator {
}
SettingsComboBox { SettingsComboBox {
id: settingsFillModeComboBox id: settingsFillModeComboBox
headline: qsTr("Default Fill Mode") headline: qsTr("Default Fill Mode")