scroll fixes

This commit is contained in:
Agel committed 2026-03-23 22:57:57 +01:00
1 parent f84e109a64
commit 1d3b58ac46
2 files changed
+6 -5

No files matched your search

+3 -2
View File
@@ -16,9 +16,9 @@ Rectangle {
ListView {
id: chunkListView
anchors.fill: parent
anchors.topMargin: appState.verticalMargin
anchors.bottomMargin: appState.verticalMargin
model: bookController.hasBook ? readingModel : null
header: Item { height: appState.verticalMargin }
footer: Item { height: appState.verticalMargin }
cacheBuffer: 2000
clip: true
@@ -65,6 +65,7 @@ Rectangle {
MouseArea {
anchors.fill: parent
anchors.rightMargin: 18
z: 1
onClicked: clickDebounce.restart()
onDoubleClicked: {
+3 -3
View File
@@ -172,7 +172,7 @@ private slots:
// IFileDialogService tests
void browseAndOpenCallsServiceOpen()
void browseAndOpenCallsServiceOpen() const
{
BookController ctrl;
FakeFileDialogService svc;
@@ -183,7 +183,7 @@ private slots:
QVERIFY(svc.openCalled);
}
void browseAndOpenUsesService()
void browseAndOpenUsesService() const
{
BookController ctrl;
FakeFileDialogService svc;
@@ -196,7 +196,7 @@ private slots:
QVERIFY(ctrl.hasBook());
}
void browseAndOpenNoopWhenNoService()
void browseAndOpenNoopWhenNoService() const
{
BookController ctrl;
// No service set — must not crash