scroll fixes
This commit is contained in:
2 files changed
+6
-5
No files matched your search
@@ -16,9 +16,9 @@ Rectangle {
|
|||||||
ListView {
|
ListView {
|
||||||
id: chunkListView
|
id: chunkListView
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.topMargin: appState.verticalMargin
|
|
||||||
anchors.bottomMargin: appState.verticalMargin
|
|
||||||
model: bookController.hasBook ? readingModel : null
|
model: bookController.hasBook ? readingModel : null
|
||||||
|
header: Item { height: appState.verticalMargin }
|
||||||
|
footer: Item { height: appState.verticalMargin }
|
||||||
cacheBuffer: 2000
|
cacheBuffer: 2000
|
||||||
clip: true
|
clip: true
|
||||||
|
|
||||||
@@ -65,6 +65,7 @@ Rectangle {
|
|||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
anchors.rightMargin: 18
|
||||||
z: 1
|
z: 1
|
||||||
onClicked: clickDebounce.restart()
|
onClicked: clickDebounce.restart()
|
||||||
onDoubleClicked: {
|
onDoubleClicked: {
|
||||||
|
|||||||
@@ -172,7 +172,7 @@ private slots:
|
|||||||
|
|
||||||
// IFileDialogService tests
|
// IFileDialogService tests
|
||||||
|
|
||||||
void browseAndOpenCallsServiceOpen()
|
void browseAndOpenCallsServiceOpen() const
|
||||||
{
|
{
|
||||||
BookController ctrl;
|
BookController ctrl;
|
||||||
FakeFileDialogService svc;
|
FakeFileDialogService svc;
|
||||||
@@ -183,7 +183,7 @@ private slots:
|
|||||||
QVERIFY(svc.openCalled);
|
QVERIFY(svc.openCalled);
|
||||||
}
|
}
|
||||||
|
|
||||||
void browseAndOpenUsesService()
|
void browseAndOpenUsesService() const
|
||||||
{
|
{
|
||||||
BookController ctrl;
|
BookController ctrl;
|
||||||
FakeFileDialogService svc;
|
FakeFileDialogService svc;
|
||||||
@@ -196,7 +196,7 @@ private slots:
|
|||||||
QVERIFY(ctrl.hasBook());
|
QVERIFY(ctrl.hasBook());
|
||||||
}
|
}
|
||||||
|
|
||||||
void browseAndOpenNoopWhenNoService()
|
void browseAndOpenNoopWhenNoService() const
|
||||||
{
|
{
|
||||||
BookController ctrl;
|
BookController ctrl;
|
||||||
// No service set — must not crash
|
// No service set — must not crash
|
||||||
|
|||||||
Reference in new issue
Block a user