Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Okular
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
John Zhang
Okular
Commits
f1fd2750
Commit
f1fd2750
authored
Mar 10, 2007
by
Pino Toscano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save a pointer to save some casts
svn path=/trunk/playground/graphics/okular/; revision=641327
parent
3507d4e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
part.cpp
part.cpp
+2
-2
part.h
part.h
+3
-0
No files found.
part.cpp
View file @
f1fd2750
...
...
@@ -1601,7 +1601,7 @@ void Part::updateAboutBackendAction()
* BrowserExtension class
*/
BrowserExtension
::
BrowserExtension
(
Part
*
parent
)
:
KParts
::
BrowserExtension
(
parent
)
:
KParts
::
BrowserExtension
(
parent
),
m_part
(
parent
)
{
emit
enableAction
(
"print"
,
true
);
setURLDropHandlingEnabled
(
true
);
...
...
@@ -1610,7 +1610,7 @@ BrowserExtension::BrowserExtension(Part* parent)
void
BrowserExtension
::
print
()
{
static_cast
<
Part
*>
(
parent
())
->
slotPrint
();
m_part
->
slotPrint
();
}
...
...
part.h
View file @
f1fd2750
...
...
@@ -241,6 +241,9 @@ class BrowserExtension : public KParts::BrowserExtension
public
slots
:
// Automatically detected by the host.
void
print
();
private:
Part
*
m_part
;
};
#endif
...
...
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