1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2026-02-08 00:32:27 +00:00

Remove warnings related qt6 signal handlers.

This commit is contained in:
Filippo Scognamiglio
2025-12-10 23:20:31 +01:00
parent 3f51308057
commit fed2bf21fe
6 changed files with 25 additions and 25 deletions

View File

@@ -208,31 +208,31 @@ Item{
acceptedButtons: Qt.LeftButton | Qt.MiddleButton | Qt.RightButton acceptedButtons: Qt.LeftButton | Qt.MiddleButton | Qt.RightButton
anchors.fill: parent anchors.fill: parent
cursorShape: kterminal.terminalUsesMouse ? Qt.ArrowCursor : Qt.IBeamCursor cursorShape: kterminal.terminalUsesMouse ? Qt.ArrowCursor : Qt.IBeamCursor
onWheel:{ onWheel: function(wheel) {
if(wheel.modifiers & Qt.ControlModifier){ if (wheel.modifiers & Qt.ControlModifier) {
wheel.angleDelta.y > 0 ? zoomIn.trigger() : zoomOut.trigger(); wheel.angleDelta.y > 0 ? zoomIn.trigger() : zoomOut.trigger();
} else { } else {
var coord = correctDistortion(wheel.x, wheel.y); var coord = correctDistortion(wheel.x, wheel.y);
kterminal.simulateWheel(coord.x, coord.y, wheel.buttons, wheel.modifiers, wheel.angleDelta); kterminal.simulateWheel(coord.x, coord.y, wheel.buttons, wheel.modifiers, wheel.angleDelta);
} }
} }
onDoubleClicked: { onDoubleClicked: function(mouse) {
var coord = correctDistortion(mouse.x, mouse.y); var coord = correctDistortion(mouse.x, mouse.y);
kterminal.simulateMouseDoubleClick(coord.x, coord.y, mouse.button, mouse.buttons, mouse.modifiers); kterminal.simulateMouseDoubleClick(coord.x, coord.y, mouse.button, mouse.buttons, mouse.modifiers);
} }
onPressed: { onPressed: function(mouse) {
if((!kterminal.terminalUsesMouse || mouse.modifiers & Qt.ShiftModifier) && mouse.button == Qt.RightButton) { if ((!kterminal.terminalUsesMouse || mouse.modifiers & Qt.ShiftModifier) && mouse.button == Qt.RightButton) {
contextmenu.popup(); contextmenu.popup();
} else { } else {
var coord = correctDistortion(mouse.x, mouse.y); var coord = correctDistortion(mouse.x, mouse.y);
kterminal.simulateMousePress(coord.x, coord.y, mouse.button, mouse.buttons, mouse.modifiers) kterminal.simulateMousePress(coord.x, coord.y, mouse.button, mouse.buttons, mouse.modifiers)
} }
} }
onReleased: { onReleased: function(mouse) {
var coord = correctDistortion(mouse.x, mouse.y); var coord = correctDistortion(mouse.x, mouse.y);
kterminal.simulateMouseRelease(coord.x, coord.y, mouse.button, mouse.buttons, mouse.modifiers); kterminal.simulateMouseRelease(coord.x, coord.y, mouse.button, mouse.buttons, mouse.modifiers);
} }
onPositionChanged: { onPositionChanged: function(mouse) {
var coord = correctDistortion(mouse.x, mouse.y); var coord = correctDistortion(mouse.x, mouse.y);
kterminal.simulateMouseMove(coord.x, coord.y, mouse.button, mouse.buttons, mouse.modifiers); kterminal.simulateMouseMove(coord.x, coord.y, mouse.button, mouse.buttons, mouse.modifiers);
} }

View File

@@ -33,53 +33,53 @@ ColumnLayout {
CheckableSlider { CheckableSlider {
name: qsTr("Bloom") name: qsTr("Bloom")
onNewValue: appSettings.bloom = newValue onNewValue: function(newValue) { appSettings.bloom = newValue }
value: appSettings.bloom value: appSettings.bloom
} }
CheckableSlider { CheckableSlider {
name: qsTr("BurnIn") name: qsTr("BurnIn")
onNewValue: appSettings.burnIn = newValue onNewValue: function(newValue) { appSettings.burnIn = newValue }
value: appSettings.burnIn value: appSettings.burnIn
} }
CheckableSlider { CheckableSlider {
name: qsTr("Static Noise") name: qsTr("Static Noise")
onNewValue: appSettings.staticNoise = newValue onNewValue: function(newValue) { appSettings.staticNoise = newValue }
value: appSettings.staticNoise value: appSettings.staticNoise
} }
CheckableSlider { CheckableSlider {
name: qsTr("Jitter") name: qsTr("Jitter")
onNewValue: appSettings.jitter = newValue onNewValue: function(newValue) { appSettings.jitter = newValue }
value: appSettings.jitter value: appSettings.jitter
} }
CheckableSlider { CheckableSlider {
name: qsTr("Glow Line") name: qsTr("Glow Line")
onNewValue: appSettings.glowingLine = newValue onNewValue: function(newValue) { appSettings.glowingLine = newValue }
value: appSettings.glowingLine value: appSettings.glowingLine
} }
CheckableSlider { CheckableSlider {
name: qsTr("Screen Curvature") name: qsTr("Screen Curvature")
onNewValue: appSettings.screenCurvature = newValue onNewValue: function(newValue) { appSettings.screenCurvature = newValue }
value: appSettings.screenCurvature value: appSettings.screenCurvature
} }
CheckableSlider { CheckableSlider {
name: qsTr("Ambient Light") name: qsTr("Ambient Light")
onNewValue: appSettings.ambientLight = newValue onNewValue: function(newValue) { appSettings.ambientLight = newValue }
value: appSettings.ambientLight value: appSettings.ambientLight
enabled: appSettings.framesIndex !== 0 enabled: appSettings.framesIndex !== 0
} }
CheckableSlider { CheckableSlider {
name: qsTr("Flickering") name: qsTr("Flickering")
onNewValue: appSettings.flickering = newValue onNewValue: function(newValue) { appSettings.flickering = newValue }
value: appSettings.flickering value: appSettings.flickering
} }
CheckableSlider { CheckableSlider {
name: qsTr("Horizontal Sync") name: qsTr("Horizontal Sync")
onNewValue: appSettings.horizontalSync = newValue onNewValue: function(newValue) { appSettings.horizontalSync = newValue }
value: appSettings.horizontalSync value: appSettings.horizontalSync
} }
CheckableSlider { CheckableSlider {
name: qsTr("RGB Shift") name: qsTr("RGB Shift")
onNewValue: appSettings.rbgShift = newValue onNewValue: function(newValue) { appSettings.rbgShift = newValue }
value: appSettings.rbgShift value: appSettings.rbgShift
} }
} }

View File

@@ -140,12 +140,12 @@ ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
CheckableSlider { CheckableSlider {
name: qsTr("Chroma Color") name: qsTr("Chroma Color")
onNewValue: appSettings.chromaColor = newValue onNewValue: function(newValue) { appSettings.chromaColor = newValue }
value: appSettings.chromaColor value: appSettings.chromaColor
} }
CheckableSlider { CheckableSlider {
name: qsTr("Saturation Color") name: qsTr("Saturation Color")
onNewValue: appSettings.saturationColor = newValue onNewValue: function(newValue) { appSettings.saturationColor = newValue }
value: appSettings.saturationColor value: appSettings.saturationColor
enabled: appSettings.chromaColor !== 0 enabled: appSettings.chromaColor !== 0
} }

View File

@@ -82,8 +82,8 @@ Menu {
appSettings.handleFontChanged() appSettings.handleFontChanged()
} }
} }
onObjectAdded: profilesMenu.insertItem(index, object) onObjectAdded: function(index, object) { profilesMenu.insertItem(index, object) }
onObjectRemoved: profilesMenu.removeItem(object) onObjectRemoved: function(object) { profilesMenu.removeItem(object) }
} }
} }
Menu { Menu {

View File

@@ -75,8 +75,8 @@ MenuBar {
appSettings.handleFontChanged() appSettings.handleFontChanged()
} }
} }
onObjectAdded: profilesMenu.insertItem(index, object) onObjectAdded: function(index, object) { profilesMenu.insertItem(index, object) }
onObjectRemoved: profilesMenu.removeItem(object) onObjectRemoved: function(object) { profilesMenu.removeItem(object) }
} }
} }
Menu { Menu {

View File

@@ -72,8 +72,8 @@ MenuBar {
appSettings.handleFontChanged() appSettings.handleFontChanged()
} }
} }
onObjectAdded: profilesMenu.insertItem(index, object) onObjectAdded: function(index, object) { profilesMenu.insertItem(index, object) }
onObjectRemoved: profilesMenu.removeItem(object) onObjectRemoved: function(object) { profilesMenu.removeItem(object) }
} }
} }
Menu { Menu {