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
Joao Oliveira
Okular
Commits
439e7b97
Commit
439e7b97
authored
May 08, 2011
by
Albert Astals Cid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused variables
svn path=/trunk/KDE/kdegraphics/okular/; revision=1230896
parent
64b8965b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
0 additions
and
23 deletions
+0
-23
core/textpage.cpp
core/textpage.cpp
+0
-12
generators/dvi/fontpool.cpp
generators/dvi/fontpool.cpp
+0
-6
ui/pagepainter.cpp
ui/pagepainter.cpp
+0
-1
ui/pageview.cpp
ui/pageview.cpp
+0
-1
ui/pageviewutils.cpp
ui/pageviewutils.cpp
+0
-1
ui/thumbnaillist.cpp
ui/thumbnaillist.cpp
+0
-2
No files found.
core/textpage.cpp
View file @
439e7b97
...
...
@@ -553,9 +553,7 @@ RegularAreaRect* TextPagePrivate::findTextInternalBackward( int searchID, const
// queryLeft is the length of the query we have left
const
TinyTextEntity
*
curEntity
=
0
;
int
j
=
query
.
length
()
-
1
,
len
=
0
,
queryLeft
=
query
.
length
();
int
offset
=
0
;
bool
haveMatch
=
false
;
bool
dontIncrement
=
false
;
bool
offsetMoved
=
false
;
TextList
::
ConstIterator
it
=
start
;
TextList
::
ConstIterator
it_begin
;
...
...
@@ -565,10 +563,6 @@ RegularAreaRect* TextPagePrivate::findTextInternalBackward( int searchID, const
const
QString
&
str
=
curEntity
->
text
();
if
(
!
offsetMoved
&&
(
it
==
start
)
)
{
if
(
m_searchPoints
.
contains
(
searchID
)
)
{
offset
=
qMax
(
m_searchPoints
[
searchID
]
->
offset_begin
,
0
);
}
offsetMoved
=
true
;
}
if
(
query
.
at
(
j
).
isSpace
()
)
...
...
@@ -579,14 +573,9 @@ RegularAreaRect* TextPagePrivate::findTextInternalBackward( int searchID, const
#endif
j
--
;
queryLeft
--
;
// since we do not really need to increment this after this
// run of the loop finishes because we are not comparing it
// to any entity, rather we are deducing a situation in a document
dontIncrement
=
true
;
}
else
{
dontIncrement
=
false
;
len
=
str
.
length
();
int
min
=
qMin
(
queryLeft
,
len
);
#ifdef DEBUG_TEXTPAGE
...
...
@@ -609,7 +598,6 @@ RegularAreaRect* TextPagePrivate::findTextInternalBackward( int searchID, const
kDebug
(
OkularDebug
)
<<
"
\t
not matched"
;
#endif
j
=
query
.
length
()
-
1
;
offset
=
0
;
queryLeft
=
query
.
length
();
it_begin
=
TextList
::
ConstIterator
();
}
...
...
generators/dvi/fontpool.cpp
View file @
439e7b97
...
...
@@ -480,17 +480,11 @@ void fontPool::mf_output_receiver()
// We'd like to print only full lines of text.
int
numleft
;
bool
show_prog
=
false
;
while
(
(
numleft
=
MetafontOutput
.
indexOf
(
'\n'
))
!=
-
1
)
{
QString
line
=
MetafontOutput
.
left
(
numleft
+
1
);
#ifdef DEBUG_FONTPOOL
kDebug
(
kvs
::
dvi
)
<<
"MF OUTPUT RECEIVED: "
<<
line
;
#endif
// Search for a line which marks the beginning of a MetaFont run
// and show the progress dialog at the end of this method.
if
(
line
.
indexOf
(
"kpathsea:"
)
==
0
)
show_prog
=
true
;
// If the Output of the kpsewhich program contains a line starting
// with "kpathsea:", this means that a new MetaFont-run has been
// started. We filter these lines out and update the display
...
...
ui/pagepainter.cpp
View file @
439e7b97
...
...
@@ -666,7 +666,6 @@ void PagePainter::paintCroppedPageOnPainter( QPainter * destPainter, const Okula
mixedPainter
->
translate
(
-
crop
.
left
,
-
crop
.
top
);
QColor
normalColor
=
QApplication
::
palette
().
color
(
QPalette
::
Active
,
QPalette
::
Highlight
);
QColor
lightColor
=
normalColor
.
light
(
140
);
// enlarging limits for intersection is like growing the 'rectGeometry' below
QRect
limitsEnlarged
=
limits
;
limitsEnlarged
.
adjust
(
-
2
,
-
2
,
2
,
2
);
...
...
ui/pageview.cpp
View file @
439e7b97
...
...
@@ -1500,7 +1500,6 @@ void PageView::mouseMoveEvent( QMouseEvent * e )
{
const
QRect
&
itemRect
=
pageItem
->
uncroppedGeometry
();
QPoint
newpos
=
eventPos
-
itemRect
.
topLeft
();
Okular
::
NormalizedRect
r
=
d
->
mouseAnn
->
boundingRectangle
();
QPoint
p
(
newpos
-
d
->
mouseAnnPos
);
QPointF
pf
(
rotateInRect
(
p
,
pageItem
->
page
()
->
rotation
()
)
);
if
(
pageItem
->
page
()
->
rotation
()
%
2
==
0
)
...
...
ui/pageviewutils.cpp
View file @
439e7b97
...
...
@@ -136,7 +136,6 @@ void PageViewItem::setWHZC( int w, int h, double z, const Okular:: NormalizedRec
m_croppedGeometry
.
setHeight
(
h
);
m_zoomFactor
=
z
;
m_crop
=
c
;
QRect
scaledCrop
=
c
.
geometry
(
w
,
h
);
m_uncroppedGeometry
.
setWidth
(
qRound
(
w
/
(
c
.
right
-
c
.
left
)
)
);
m_uncroppedGeometry
.
setHeight
(
qRound
(
h
/
(
c
.
bottom
-
c
.
top
)
)
);
foreach
(
FormWidgetIface
*
fwi
,
m_formWidgets
)
...
...
ui/thumbnaillist.cpp
View file @
439e7b97
...
...
@@ -407,7 +407,6 @@ bool ThumbnailList::canUnloadPixmap( int pageNumber ) const
void
ThumbnailList
::
updateWidgets
()
{
// find all widgets that intersects the viewport and update them
const
QRect
viewportRect
=
viewport
()
->
rect
().
translated
(
viewport
()
->
pos
()
);
QList
<
ThumbnailWidget
*>::
const_iterator
vIt
=
d
->
m_visibleThumbnails
.
constBegin
(),
vEnd
=
d
->
m_visibleThumbnails
.
constEnd
();
for
(
;
vIt
!=
vEnd
;
++
vIt
)
{
...
...
@@ -791,7 +790,6 @@ void ThumbnailListPrivate::mouseMoveEvent( QMouseEvent * e )
if
(
!
m_mouseGrabItem
)
return
e
->
ignore
();
const
QRect
r
=
m_mouseGrabItem
->
rect
();
const
QPoint
p
=
e
->
pos
()
-
m_mouseGrabItem
->
pos
();
if
(
!
m_mouseGrabPos
.
isNull
()
)
{
const
QPoint
mousePos
=
e
->
pos
();
...
...
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