From 26ac678afeb6946f48f1efa0d85e157fccb8aa5c Mon Sep 17 00:00:00 2001 From: smk762 Date: Fri, 14 Jun 2024 08:35:09 +0800 Subject: [PATCH 1/2] fix deprecated syntax --- atomic_defi_design/Dex/Exchange/Trade/OrderBook/List.qml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/atomic_defi_design/Dex/Exchange/Trade/OrderBook/List.qml b/atomic_defi_design/Dex/Exchange/Trade/OrderBook/List.qml index e67d03e6e0..97aa37dce7 100644 --- a/atomic_defi_design/Dex/Exchange/Trade/OrderBook/List.qml +++ b/atomic_defi_design/Dex/Exchange/Trade/OrderBook/List.qml @@ -73,13 +73,14 @@ Item Connections { target: API.app.trading_pg - onMarketModeChanged: { + + function onMarketModeChanged: { if (isAsk) quickscroll_timer.start() } - onOrderbookChanged: { + function onOrderbookChanged: { if (isAsk) quickscroll_timer.start() } - onMarketPairsChanged: { + function onMarketPairsChanged: { if (isAsk) quickscroll_timer.start() } } From f2b86e03eb677c11420bde28644f71ba402041e2 Mon Sep 17 00:00:00 2001 From: smk762 Date: Fri, 14 Jun 2024 19:01:04 +0800 Subject: [PATCH 2/2] fix connection triggger function syntax --- .../Dex/Exchange/Trade/OrderBook/List.qml | 26 ++++++++++++++----- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/atomic_defi_design/Dex/Exchange/Trade/OrderBook/List.qml b/atomic_defi_design/Dex/Exchange/Trade/OrderBook/List.qml index 97aa37dce7..8807c1a69c 100644 --- a/atomic_defi_design/Dex/Exchange/Trade/OrderBook/List.qml +++ b/atomic_defi_design/Dex/Exchange/Trade/OrderBook/List.qml @@ -72,16 +72,28 @@ Item } Connections { - target: API.app.trading_pg + target: API.app.trading_pg; - function onMarketModeChanged: { - if (isAsk) quickscroll_timer.start() + function onMarketModeChanged() + { + if (isAsk) + { + quickscroll_timer.start() + } } - function onOrderbookChanged: { - if (isAsk) quickscroll_timer.start() + function onOrderbookChanged() + { + if (isAsk) + { + quickscroll_timer.start() + } } - function onMarketPairsChanged: { - if (isAsk) quickscroll_timer.start() + function onMarketPairsChanged() + { + if (isAsk) + { + quickscroll_timer.start() + } } } } \ No newline at end of file