Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Graphics
Okular
Commits
da934a0a
Commit
da934a0a
authored
May 25, 2020
by
Oliver Sander
Committed by
Nate Graham
Oct 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make cursor open hand again after clicking on internal link
CCBUG: 421437
parent
c69e8a5b
Pipeline
#37548
passed with stage
in 16 minutes and 43 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
autotests/parttest.cpp
autotests/parttest.cpp
+7
-0
No files found.
autotests/parttest.cpp
View file @
da934a0a
...
...
@@ -314,6 +314,13 @@ void PartTest::testClickInternalLink()
QTest
::
mouseMove
(
part
.
m_pageView
->
viewport
(),
QPoint
(
width
*
0.17
,
height
*
0.05
));
QTest
::
mouseClick
(
part
.
m_pageView
->
viewport
(),
Qt
::
LeftButton
,
Qt
::
NoModifier
,
QPoint
(
width
*
0.17
,
height
*
0.05
));
QTRY_COMPARE
(
part
.
m_document
->
currentPage
(),
1u
);
// make sure cursor goes back to being an open hand again. Bug 421437
// TODO: This test for bug 421437 has been committed when there was no fix for the bug
// available yet. That's why the QTRY_COMPARE_WITH_TIMEOUT is preceded by QEXPECT_FAIL.
// Please remove the QEXPECT_FAIL together with the fix for bug 421437.
QEXPECT_FAIL
(
""
,
"Please remove this QEXPECT_FAIL once bug 421437 is fixed!"
,
Continue
);
QTRY_COMPARE_WITH_TIMEOUT
(
part
.
m_pageView
->
cursor
().
shape
(),
Qt
::
OpenHandCursor
,
1000
);
}
// Test for bug 421159, which is: When scrolling down with the scroll bar
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment