mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-07 23:56:15 +00:00
mobile/cleanup: remove more noisy debug output
The repositioning message when a virtual keyboard opens is useful enough to keep it and just hide it unless in verbose mode. The others have all outlived their usefulness. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
bf556da81a
commit
622e5aab69
4 changed files with 3 additions and 13 deletions
|
@ -616,9 +616,6 @@ Item {
|
||||||
onCursorRectangleChanged: {
|
onCursorRectangleChanged: {
|
||||||
ensureVisible(y + cursorRectangle.y)
|
ensureVisible(y + cursorRectangle.y)
|
||||||
}
|
}
|
||||||
onContentHeightChanged: {
|
|
||||||
console.log("content height changed")
|
|
||||||
}
|
|
||||||
|
|
||||||
// ensure that the y coordinate is inside the visible part of the detailsEditFlickable (our flickable)
|
// ensure that the y coordinate is inside the visible part of the detailsEditFlickable (our flickable)
|
||||||
function ensureVisible(yDest) {
|
function ensureVisible(yDest) {
|
||||||
|
|
|
@ -53,11 +53,8 @@ Kirigami.ScrollablePage {
|
||||||
height: isTrip ? 1 + 8 * Kirigami.Units.smallSpacing : 11 * Kirigami.Units.smallSpacing // delegateInnerItem.height
|
height: isTrip ? 1 + 8 * Kirigami.Units.smallSpacing : 11 * Kirigami.Units.smallSpacing // delegateInnerItem.height
|
||||||
|
|
||||||
onSelectedChanged: {
|
onSelectedChanged: {
|
||||||
console.log("index " + index + " select changed to " + selected)
|
if (selected && index !== view.currentIndex)
|
||||||
if (selected && index !== view.currentIndex) {
|
|
||||||
view.currentIndex = index;
|
view.currentIndex = index;
|
||||||
console.log("updated view.currentIndex")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// When clicked, a trip expands / unexpands, a dive is opened in DiveDetails
|
// When clicked, a trip expands / unexpands, a dive is opened in DiveDetails
|
||||||
|
|
|
@ -44,7 +44,8 @@ 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
|
||||||
console.log("position check: lower edge of view is " + (0 + flickable.contentY + flickable.height) + " and text field is at " + stfY)
|
if (verbose)
|
||||||
|
manager.appendTextToLogFile("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)
|
||||||
}
|
}
|
||||||
|
|
|
@ -212,14 +212,9 @@ Kirigami.Page {
|
||||||
statisticsPage.height - 2 * Kirigami.Units.gridUnit - i4.height
|
statisticsPage.height - 2 * Kirigami.Units.gridUnit - i4.height
|
||||||
Layout.maximumWidth: wide ? statisticsPage.width - 2 * Kirigami.Units.gridUnit - i4.width :
|
Layout.maximumWidth: wide ? statisticsPage.width - 2 * Kirigami.Units.gridUnit - i4.width :
|
||||||
statisticsPage.width - 2 * Kirigami.Units.smallSpacing
|
statisticsPage.width - 2 * Kirigami.Units.smallSpacing
|
||||||
|
|
||||||
onWidthChanged: {
|
|
||||||
console.log("StatsView widget width is " + width + " on page with width " + statisticsPage.width)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
statsManager.init(statsView, chartListModel)
|
statsManager.init(statsView, chartListModel)
|
||||||
console.log("Statistics widget loaded")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue