Warning, /plasma/latte-dock/declarativeimports/abilities/bridge/ParabolicEffect.qml is written in an unsupported language. File is not indexed.
0001 /*
0002 SPDX-FileCopyrightText: 2020 Michail Vourlakos <mvourlakos@gmail.com>
0003 SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005
0006 import QtQuick 2.0
0007
0008 BridgeItem {
0009 id: parabolicBridge
0010
0011 function clientRequestUpdateLowerItemScale(newScales) {
0012 host.sglUpdateLowerItemScale(appletIndex-1, newScales);
0013 }
0014
0015 function clientRequestUpdateHigherItemScale(newScales) {
0016 host.sglUpdateHigherItemScale(appletIndex+1, newScales);
0017 }
0018
0019 /*Be Careful, needs to be considered how to not create
0020 endless recursion because each one calls the other.
0021 If client in inside a container and as such is using
0022 a parabolic host then the parabolic host clearZoom signal
0023 should be called when needed.
0024
0025 Connections {
0026 target: client ? client : null
0027 onSglClearZoom: {
0028 if (parabolicBridge.host) {
0029 parabolicBridge.host.sglClearZoom();
0030 }
0031 }
0032 }*/
0033
0034 Connections {
0035 target: host ? host : null
0036 onSglClearZoom: {
0037 if (parabolicBridge.client) {
0038 parabolicBridge.client.sglClearZoom();
0039 }
0040 }
0041 }
0042 }