cleanup: fix typo: verboseEnabebled -> verboseEnabled

Not really relevant, because it only affects debugging output.

But shows why I dislike weakly typed, non-compiled languages.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2023-05-20 19:28:06 +02:00 committed by bstoeger
parent 9e059be4ca
commit a7889d1f4e
2 changed files with 2 additions and 2 deletions

View file

@ -253,7 +253,7 @@ Item {
// before realizing that this is actually a pinch/zoom. So let's reset this // before realizing that this is actually a pinch/zoom. So let's reset this
// just in case // just in case
qmlProfile.opacity = 1.0 qmlProfile.opacity = 1.0
if (manager.verboseEnabebled) if (manager.verboseEnabled)
manager.appendTextToLog("pinch started w/ previousScale " + qmlProfile.lastScale) manager.appendTextToLog("pinch started w/ previousScale " + qmlProfile.lastScale)
} }
onPinchUpdated: { onPinchUpdated: {

View file

@ -65,7 +65,7 @@ Controls.TextField {
// make sure there's enough space for the input field above the keyboard and action button (and that it's not too far up, either) // make sure there's enough space for the input field above the keyboard and action button (and that it's not too far up, either)
var positionInFlickable = stf.mapToItem(flickable.contentItem, 0, 0) var positionInFlickable = stf.mapToItem(flickable.contentItem, 0, 0)
var stfY = positionInFlickable.y var stfY = positionInFlickable.y
if (manager.verboseEnabebled) if (manager.verboseEnabled)
manager.appendTextToLog("position check: lower edge of view is " + (0 + flickable.contentY + flickable.height) + " and text field is at " + stfY) manager.appendTextToLog("position check: lower edge of view is " + (0 + flickable.contentY + flickable.height) + " and text field is at " + stfY)
if (stfY + stf.height > flickable.contentY + flickable.height - 3 * Kirigami.Units.gridUnit || stfY < flickable.contentY) if (stfY + stf.height > flickable.contentY + flickable.height - 3 * Kirigami.Units.gridUnit || stfY < flickable.contentY)
flickable.contentY = Math.max(0, 3 * Kirigami.Units.gridUnit + stfY + stf.height - flickable.height) flickable.contentY = Math.max(0, 3 * Kirigami.Units.gridUnit + stfY + stf.height - flickable.height)