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
John Zhang
Okular
Commits
857d423c
Commit
857d423c
authored
Jul 22, 2007
by
Pino Toscano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly (hopefully) translate the text annotations now.
svn path=/trunk/KDE/kdegraphics/okular/; revision=691048
parent
7c7c6738
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
core/annotations.cpp
core/annotations.cpp
+16
-0
ui/annotationguiutils.cpp
ui/annotationguiutils.cpp
+1
-0
No files found.
core/annotations.cpp
View file @
857d423c
...
...
@@ -834,6 +834,7 @@ class Okular::TextAnnotationPrivate : public Okular::AnnotationPrivate
}
virtual
void
transform
(
const
QMatrix
&
matrix
);
virtual
void
translate
(
const
NormalizedPoint
&
coord
);
TextAnnotation
::
TextType
m_textType
;
QString
m_textIcon
;
...
...
@@ -1071,6 +1072,21 @@ void TextAnnotationPrivate::transform( const QMatrix &matrix )
}
}
void
TextAnnotationPrivate
::
translate
(
const
NormalizedPoint
&
coord
)
{
AnnotationPrivate
::
translate
(
coord
);
#define ADD_COORD( c1, c2 ) \
{ \
c1.x = c1.x + c2.x; \
c1.y = c1.y + c2.y; \
}
ADD_COORD
(
m_inplaceCallout
[
0
],
coord
)
ADD_COORD
(
m_inplaceCallout
[
1
],
coord
)
ADD_COORD
(
m_inplaceCallout
[
2
],
coord
)
#undef ADD_COORD
}
/** LineAnnotation [Annotation] */
class
Okular
::
LineAnnotationPrivate
:
public
Okular
::
AnnotationPrivate
...
...
ui/annotationguiutils.cpp
View file @
857d423c
...
...
@@ -93,6 +93,7 @@ bool AnnotationGuiUtils::canBeMoved( Okular::Annotation * ann )
case
Okular
::
Annotation
::
AStamp
:
case
Okular
::
Annotation
::
AGeom
:
case
Okular
::
Annotation
::
AInk
:
case
Okular
::
Annotation
::
AText
:
return
true
;
break
;
default:
...
...
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