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
8761aa5f
Commit
8761aa5f
authored
Dec 31, 2007
by
Pino Toscano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add possibility to for an item to be "set visible" or not
svn path=/trunk/KDE/kdegraphics/okular/; revision=755208
parent
e60c1ec1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
ui/pageviewutils.cpp
ui/pageviewutils.cpp
+11
-1
ui/pageviewutils.h
ui/pageviewutils.h
+3
-0
No files found.
ui/pageviewutils.cpp
View file @
8761aa5f
...
...
@@ -39,7 +39,7 @@
/*********************/
PageViewItem
::
PageViewItem
(
const
Okular
::
Page
*
page
)
:
m_page
(
page
),
m_zoomFactor
(
1.0
)
:
m_page
(
page
),
m_zoomFactor
(
1.0
)
,
m_visible
(
true
)
{
}
...
...
@@ -80,6 +80,11 @@ double PageViewItem::zoomFactor() const
return
m_zoomFactor
;
}
bool
PageViewItem
::
isVisible
()
const
{
return
m_visible
;
}
QHash
<
QString
,
FormWidgetIface
*>&
PageViewItem
::
formWidgets
()
{
return
m_formWidgets
;
...
...
@@ -114,6 +119,11 @@ void PageViewItem::moveTo( int x, int y )
}
}
void
PageViewItem
::
setVisible
(
bool
visible
)
{
m_visible
=
visible
;
}
void
PageViewItem
::
invalidate
()
{
m_geometry
.
setRect
(
0
,
0
,
0
,
0
);
...
...
ui/pageviewutils.h
View file @
8761aa5f
...
...
@@ -45,11 +45,13 @@ class PageViewItem
int
width
()
const
;
int
height
()
const
;
double
zoomFactor
()
const
;
bool
isVisible
()
const
;
QHash
<
QString
,
FormWidgetIface
*>&
formWidgets
();
void
setGeometry
(
int
x
,
int
y
,
int
width
,
int
height
);
void
setWHZ
(
int
w
,
int
h
,
double
zoom
);
void
moveTo
(
int
x
,
int
y
);
void
setVisible
(
bool
visible
);
void
invalidate
();
bool
setFormWidgetsVisible
(
bool
visible
);
...
...
@@ -57,6 +59,7 @@ class PageViewItem
const
Okular
::
Page
*
m_page
;
double
m_zoomFactor
;
QRect
m_geometry
;
bool
m_visible
;
QHash
<
QString
,
FormWidgetIface
*>
m_formWidgets
;
};
...
...
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