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

View File

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

View File

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

View File

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

View File

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

View File

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