mirror of https://github.com/KDE/kasts.git
Use formal argument declaration on qml signal handlers
This commit is contained in:
parent
184b84f8fd
commit
9525bf075a
|
@ -44,11 +44,11 @@ FocusScope {
|
||||||
|
|
||||||
cursorShape: Qt.SizeVerCursor
|
cursorShape: Qt.SizeVerCursor
|
||||||
|
|
||||||
onPressed: {
|
onPressed: (mouse) => {
|
||||||
dragStartOffset = mouse.y
|
dragStartOffset = mouse.y
|
||||||
}
|
}
|
||||||
|
|
||||||
onPositionChanged: {
|
onPositionChanged: (mouse) => {
|
||||||
desktopPlayerControls.handlePositionChanged(mouse.y, dragStartOffset)
|
desktopPlayerControls.handlePositionChanged(mouse.y, dragStartOffset)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -227,7 +227,7 @@ FocusScope {
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
|
|
||||||
onHandlePositionChanged: {
|
onHandlePositionChanged: (y, offset) => {
|
||||||
handlePosition = Math.max(0, Math.min(headerBar.maximumHeight, headerBar.height - implicitHeight - offset + y));
|
handlePosition = Math.max(0, Math.min(headerBar.maximumHeight, headerBar.height - implicitHeight - offset + y));
|
||||||
settings.headerSize = handlePosition;
|
settings.headerSize = handlePosition;
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@ Kirigami.ScrollablePage {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Keys.onPressed: {
|
Keys.onPressed: (event) => {
|
||||||
if (event.matches(StandardKey.Find)) {
|
if (event.matches(StandardKey.Find)) {
|
||||||
searchActionButton.checked = true;
|
searchActionButton.checked = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,7 @@ Kirigami.ScrollablePage {
|
||||||
|
|
||||||
title: i18n("Podcast Details")
|
title: i18n("Podcast Details")
|
||||||
|
|
||||||
Keys.onPressed: {
|
Keys.onPressed: (event) => {
|
||||||
if (event.matches(StandardKey.Find)) {
|
if (event.matches(StandardKey.Find)) {
|
||||||
searchActionButton.checked = true;
|
searchActionButton.checked = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -287,7 +287,7 @@ Kirigami.ScrollablePage {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Keys.onPressed: {
|
Keys.onPressed: (event) => {
|
||||||
if (event.matches(StandardKey.SelectAll)) {
|
if (event.matches(StandardKey.SelectAll)) {
|
||||||
feedList.selectionModel.select(model.index(0, 0), ItemSelectionModel.ClearAndSelect | ItemSelectionModel.Columns);
|
feedList.selectionModel.select(model.index(0, 0), ItemSelectionModel.ClearAndSelect | ItemSelectionModel.Columns);
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -73,7 +73,7 @@ Kirigami.SwipeListItem {
|
||||||
implicitWidth: rowLayout.implicitWidth
|
implicitWidth: rowLayout.implicitWidth
|
||||||
|
|
||||||
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
||||||
onClicked: {
|
onClicked: (mouse) => {
|
||||||
// Keep track of (currently) selected items
|
// Keep track of (currently) selected items
|
||||||
var modelIndex = listItem.listView.model.index(index, 0);
|
var modelIndex = listItem.listView.model.index(index, 0);
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ ListView {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Keys.onPressed: {
|
Keys.onPressed: (event) => {
|
||||||
if (event.matches(StandardKey.SelectAll)) {
|
if (event.matches(StandardKey.SelectAll)) {
|
||||||
listView.selectionModel.select(model.index(0, 0), ItemSelectionModel.ClearAndSelect | ItemSelectionModel.Columns);
|
listView.selectionModel.select(model.index(0, 0), ItemSelectionModel.ClearAndSelect | ItemSelectionModel.Columns);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue