Commit 3ed70c1f authored by Nate Graham's avatar Nate Graham 🔩

Port to new connection syntax

parent 95918cd2
......@@ -69,7 +69,7 @@ MouseArea {
Connections {
target: iconGrid
onCurrentItemChanged: {
function onCurrentItemChanged() {
if (delegateRoot.GridView.isCurrentItem) {
delegateRoot.setAsPreview();
}
......
......@@ -19,7 +19,7 @@ Item {
}
Connections {
target: cuttlefish
onItemRightClicked: {
function onItemRightClicked() {
menuLoader.item.popup()
}
}
......
......@@ -53,10 +53,10 @@ Kirigami.ApplicationWindow {
}
Connections {
target: loader.item
onQuit: { cuttlefish.close() }
onZoomIn: { tools.slider.value += 1 }
onZoomOut: { tools.slider.value -= 1 }
onMontage: {
function onQuit() { cuttlefish.close() }
function onZoomIn() { tools.slider.value += 1 }
function onZoomOut() { tools.slider.value -= 1 }
function onMontage() {
switch(type) {
case 0:
previewPane.iconPreview.shot("active")
......@@ -141,19 +141,19 @@ Kirigami.ApplicationWindow {
}
Connections {
target: tools
onColorschemeChanged: (index) => {
function onColorschemeChanged(index) {
toolsResponsive.currentIndex = index
}
onSliderValueChanged: (val) => {
function onSliderValueChanged(val) {
toolsResponsive.value = val
}
}
Connections {
target: toolsResponsive
onColorschemeChanged: (index) => {
function onColorschemeChanged(index) {
tools.currentIndex = index
}
onSliderValueChanged: (val) => {
function onSliderValueChanged(val) {
tools.value = val
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment