Warning, /plasma/latte-dock/declarativeimports/abilities/definition/animations/Tracker.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.7
0007 
0008 Item {
0009     property int count: 0
0010     property var events: []
0011 
0012     function addEvent(event) {
0013         if (events.indexOf(event) < 0) {
0014             events.push(event);
0015             count = count + 1;
0016         }
0017     }
0018 
0019     function removeEvent(event) {
0020         var pos = events.indexOf(event);
0021         if (pos >= 0) {
0022             events.splice(pos, 1);
0023             count = count - 1;
0024         }
0025     }
0026 }