Added setting to invert channel buffer data

This commit is contained in:
Digital Artifex
2025-08-08 01:57:28 -04:00
parent 18795f056d
commit 91ac5771c4
6 changed files with 65 additions and 13 deletions

View File

@@ -62,6 +62,7 @@ Item
property alias tmp_resolution_scale: resolutionScaleSlider.value
property alias tmp_resolution_x: resolutionXEdit.value
property alias tmp_resolution_y: resolutionYEdit.value
property alias tmp_invert: channelInvertedCheckBox.checked
property bool tmp_enabled: tmp_source !== ""
property Palette palette
@@ -72,6 +73,7 @@ Item
property int resolution_x
property int resolution_y
property bool enabled
property bool invert
id: window
@@ -304,6 +306,12 @@ Item
}
}
CheckBox
{
id: channelInvertedCheckBox
text: i18n("Invert Channel Data")
}
RowLayout
{
Layout.alignment: Qt.AlignTop
@@ -567,6 +575,7 @@ Item
resolution_x = tmp_resolution_x
resolution_y = tmp_resolution_y
enabled = tmp_enabled
invert = tmp_invert
// Emit the accepted signal and reset the selection
window.accepted()
@@ -616,6 +625,7 @@ Item
tmp_resolution_scale = resolution_scale
tmp_resolution_x = resolution_x
tmp_resolution_y = resolution_y
tmp_invert = invert
tmp_type = type
updateCurrentSelection()