Warning, /plasma/latte-dock/declarativeimports/abilities/client/Requirements.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 import org.kde.latte.abilities.definition 0.1 as AbilityDefinition 0009 0010 AbilityDefinition.AppletRequirements { 0011 id: requirements 0012 property Item bridge: null 0013 0014 readonly property bool isActive: bridge !== null 0015 0016 onIsActiveChanged: { 0017 if (isActive) { 0018 bridge.applet.activeIndicatorEnabled = requirements.activeIndicatorEnabled; 0019 bridge.applet.latteSideColoringEnabled = requirements.latteSideColoringEnabled; 0020 bridge.applet.lengthMarginsEnabled = requirements.lengthMarginsEnabled; 0021 bridge.applet.parabolicEffectLocked = requirements.parabolicEffectLocked; 0022 bridge.applet.screenEdgeMarginSupported = requirements.screenEdgeMarginSupported; 0023 bridge.applet.windowsTrackingEnabled = requirements.windowsTrackingEnabled; 0024 } 0025 } 0026 0027 onActiveIndicatorEnabledChanged: { 0028 if (isActive) { 0029 bridge.applet.activeIndicatorEnabled = requirements.activeIndicatorEnabled; 0030 } 0031 } 0032 0033 onLatteSideColoringEnabledChanged: { 0034 if (isActive) { 0035 bridge.applet.latteSideColoringEnabled = requirements.latteSideColoringEnabled; 0036 } 0037 } 0038 0039 onLengthMarginsEnabledChanged: { 0040 if (isActive) { 0041 bridge.applet.lengthMarginsEnabled = requirements.lengthMarginsEnabled; 0042 } 0043 } 0044 0045 onParabolicEffectLockedChanged: { 0046 if (isActive) { 0047 bridge.applet.parabolicEffectLocked = requirements.parabolicEffectLocked; 0048 } 0049 } 0050 0051 onScreenEdgeMarginSupportedChanged: { 0052 if (isActive) { 0053 bridge.applet.screenEdgeMarginSupported = requirements.screenEdgeMarginSupported; 0054 } 0055 } 0056 0057 onWindowsTrackingEnabledChanged: { 0058 if (isActive) { 0059 bridge.applet.windowsTrackingEnabled = requirements.windowsTrackingEnabled; 0060 } 0061 } 0062 }