Skip to content
Snippets Groups Projects
Commit d12ed212 authored by SeeLook's avatar SeeLook :musical_note:
Browse files

Fixed JS syntax for signal handler with argument

parent 04b4be50
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ TlevelPreviewItem {
// HACK: keeping MouseArea inside PinchArea makes it working
MouseArea {
anchors.fill: parent
onWheel: {
onWheel: wheel => {
if (wheel.modifiers & Qt.ControlModifier) {
if (wheel.angleDelta.y > 0)
zoom(true);
......
......@@ -48,7 +48,7 @@ TaudioAnalyzeItem {
MouseArea {
anchors.fill: parent
onWheel: {
onWheel: wheel => {
if (wheel.modifiers & Qt.ControlModifier) {
if (wheel.angleDelta.y > 0)
sc *= 1.0625;
......
......@@ -16,7 +16,7 @@ Item {
readonly property var flatPos: [4, 1, 5, 2, 6, 3, 7]
function accidOffset(c) {
var accidOff = 1;
let accidOff = 1;
switch (c) {
case Tclef.Bass_F:
case Tclef.Bass_F_8down:
......@@ -134,7 +134,7 @@ Item {
else
keyDown();
}
onWheel: {
onWheel: wheel => {
if (wheel.angleDelta.y > 0)
deltaUp();
else if (wheel.angleDelta.y < 0)
......
......@@ -5,7 +5,6 @@
import Nootka 1.0
import Nootka.Music
import QtQuick 2.12
import QtQuick.Controls 2.12
import QtQuick.Window 2.12
import Score 1.0
......
......@@ -48,7 +48,7 @@ Item {
}
tMenu.open();
}
onWheel: {
onWheel: wheel => {
if (!SOUND.metroRunning) {
if (wheel.angleDelta.y > 0)
SOUND.tempo = SOUND.tempo + (wheel.modifiers & Qt.ControlModifier ? 10 : 1);
......@@ -210,11 +210,10 @@ Item {
Connections {
target: SOUND
function onCountdownPrepare() : void {
function onCountdownPrepare(tickCount) : void {
if (SOUND.tickBeforePlay && !GLOB.singleNoteMode) {
if (!preCountItem) {
var d = Qt.createComponent("qrc:/sound/CountdownItem.qml");
preCountItem = d.createObject(score);
preCountItem = Qt.createComponent("qrc:/sound/CountdownItem.qml").createObject(score);
}
preCountItem.tickCount = tickCount;
preCountItem.counter = 1;
......
......@@ -95,7 +95,7 @@ Popup {
MouseArea {
anchors.fill: parent
z: -1
onWheel: {
onWheel: wheel => {
var ci = buTumb.currentIndex;
if (wheel.angleDelta.y > 0)
ci--;
......@@ -282,7 +282,7 @@ Popup {
enabled: !executor
ButtonGroup {
buttons: radioRow.children
id: quantGr
}
MouseArea {
......@@ -321,6 +321,7 @@ Popup {
text: "G"
textScale: 2
checked: SOUND.quantization === 6
ButtonGroup.group: quantGr
onClicked: SOUND.quantization = 6
onHoveredChanged: NOO.setStatusTip(hovered ? quantTip : "", Item.TopLeft)
......@@ -336,6 +337,7 @@ Popup {
text: "F"
textScale: 2
checked: SOUND.quantization === 12
ButtonGroup.group: quantGr
onClicked: SOUND.quantization = 12
onHoveredChanged: NOO.setStatusTip(hovered ? quantTip : "", Item.TopLeft)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment