scroll fixes
This commit is contained in:
2 files changed
+6
-5
No files matched your search
@@ -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: {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user