1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-25 19:21:41 +03:00

upgrade debug timers flag to Abilities

This commit is contained in:
Michail Vourlakos 2020-11-29 18:12:13 +02:00
parent 13a4b64118
commit 1e985590b5
6 changed files with 15 additions and 13 deletions

View File

@ -31,6 +31,7 @@ ContainerAbility.ParabolicEffect {
property Item animations: null
property Item applets: null
property Item debug: null
property QtObject view: null
readonly property bool horizontal: plasmoid.formFactor === PlasmaCore.Types.Horizontal
@ -146,7 +147,7 @@ ContainerAbility.ParabolicEffect {
parabolic.sglClearZoom();
if (root.debugModeTimers) {
if (debug.timersEnabled) {
console.log("containment timer: RestoreZoomTimer called...");
}
}

View File

@ -118,7 +118,7 @@ Item{
AppletIdentifier.reconsiderAppletIconItem();
mainCommunicator.inStartup = false;
if (root.debugModeTimers) {
if (appletItem.debug.timersEnabled) {
console.log("containment timer: appletItem fakeInitTimer called...");
}
}

View File

@ -524,7 +524,7 @@ Item{
visibilityManager.updateMaskArea();
if (root.debugModeTimers) {
if (debug.timersEnabled) {
console.log("LayoutsContainer timer: delayUpdateMaskArea called...");
}
}

View File

@ -66,7 +66,6 @@ Item {
property bool debugModeLayouter: Qt.application.arguments.indexOf("--layouter")>=0
property bool debugModeLocalGeometry: Qt.application.arguments.indexOf("--localgeometry")>=0
property bool debugModeSpacers: Qt.application.arguments.indexOf("--spacers")>=0
property bool debugModeTimers: Qt.application.arguments.indexOf("--timers")>=0
readonly property int version: LatteCore.Environment.makeVersion(0,9,75)
readonly property bool kirigamiLibraryIsFound: LatteCore.Environment.frameworksVersion >= LatteCore.Environment.makeVersion(5,69,0)
@ -1215,7 +1214,7 @@ Item {
titleTooltipCheckerToNotShowTimer.start();
}
if (root.debugModeTimers) {
if (debug.timersEnabled) {
console.log("containment timer: showTitleTooltipTimer called...");
}
}
@ -1229,7 +1228,7 @@ Item {
titleTooltipDialog.visible = false;
}
if (root.debugModeTimers) {
if (debug.timersEnabled) {
console.log("containment timer: hideTitleTooltipTimer called...");
}
@ -1508,6 +1507,7 @@ Item {
id: _parabolic
animations: _animations
applets: layoutsContainer.applets
debug: _debug
view: latteView
}

View File

@ -125,6 +125,7 @@ Item {
property Item tasksExtendedManager: _tasksExtendedManager
readonly property alias animations: _animations
readonly property alias debug: _debug
readonly property alias indexer: _indexer
readonly property alias launchers: _launchers
readonly property alias metrics: _metrics
@ -617,7 +618,7 @@ Item {
onTriggered: {
tasksModel.requestClose(delayWindowRemovalTimer.modelIndex)
if (latteView && latteView.debugModeTimers) {
if (debug.timersEnabled) {
console.log("plasmoid timer: delayWindowRemovalTimer called...");
}
}
@ -631,7 +632,7 @@ Item {
root.publishTasksGeometries();
activityInfo.previousActivity = activityInfo.currentActivity;
if (latteView && latteView.debugModeTimers) {
if (debug.timersEnabled) {
console.log("plasmoid timer: activityChangeDelayer called...");
}
}
@ -998,7 +999,7 @@ Item {
tasksModel.anyTaskDemandsAttentionInValidTime = false;
destroy();
if (latteView && latteView.debugModeTimers) {
if (debug.timersEnabled) {
console.log("plasmoid timer: attentionTimer called...");
}
}
@ -1442,7 +1443,7 @@ Item {
onTriggered: {
root.publishTasksGeometries();
if (latteView && latteView.debugModeTimers) {
if (debug.timersEnabled) {
console.log("plasmoid timer: iconGeometryTimer called...");
}
}

View File

@ -559,7 +559,7 @@ MouseArea{
onTriggered: {
slotPublishGeometries();
if (latteView && latteView.debugModeTimers) {
if (taskItem.debug.timersEnabled) {
console.log("plasmoid timer: publishGeometryTimer called...");
}
}
@ -1593,7 +1593,7 @@ MouseArea{
taskItem.isDragged = true;
}
if (latteView && latteView.debugModeTimers) {
if (taskItem.debug.timersEnabled) {
console.log("plasmoid timer: resistanerTimer called...");
}
}
@ -1612,7 +1612,7 @@ MouseArea{
taskItem.lastValidIndex = taskItem.itemIndex;
}
if (latteView && latteView.debugModeTimers) {
if (taskItem.debug.timersEnabled) {
console.log("plasmoid timer: lastValidTimer called...");
}
}