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
4e04c12d
Commit
4e04c12d
authored
Apr 13, 2017
by
Albert Astals Cid
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/Applications/17.04'
parents
cce5cf25
69dca1e7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
ui/pageview.cpp
ui/pageview.cpp
+3
-0
ui/pageviewmouseannotation.cpp
ui/pageviewmouseannotation.cpp
+7
-0
ui/pageviewmouseannotation.h
ui/pageviewmouseannotation.h
+3
-0
No files found.
ui/pageview.cpp
View file @
4e04c12d
...
...
@@ -956,6 +956,9 @@ void PageView::notifySetup( const QVector< Okular::Page * > & pageSet, int setup
return
;
}
// mouseAnnotation must not access our PageViewItem widgets any longer
d
->
mouseAnnotation
->
reset
();
// delete all widgets (one for each page in pageSet)
QVector
<
PageViewItem
*
>::
const_iterator
dIt
=
d
->
items
.
constBegin
(),
dEnd
=
d
->
items
.
constEnd
();
for
(
;
dIt
!=
dEnd
;
++
dIt
)
...
...
ui/pageviewmouseannotation.cpp
View file @
4e04c12d
...
...
@@ -414,6 +414,13 @@ void MouseAnnotation::cancel()
}
}
void
MouseAnnotation
::
reset
()
{
cancel
();
m_focusedAnnotation
.
invalidate
();
m_mouseOverAnnotation
.
invalidate
();
}
/* Handle state changes for the focused annotation. */
void
MouseAnnotation
::
setState
(
MouseAnnotationState
state
,
const
AnnotationDescription
&
ad
)
{
...
...
ui/pageviewmouseannotation.h
View file @
4e04c12d
...
...
@@ -93,6 +93,9 @@ public:
/* Cancel the current selection or action, if any. */
void
cancel
();
/* Reset to initial state. Cancel current action and relinquish references to PageViewItem widgets. */
void
reset
();
Okular
::
Annotation
*
annotation
()
const
;
/* Return true, if MouseAnnotation demands control for a mouse click on the current cursor position. */
...
...
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