Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
Okular
Commits
9398df0a
Commit
9398df0a
authored
Aug 10, 2014
by
Frederik Gladhorn
Browse files
Welcome back Okular::Part
parent
ac15a707
Changes
2
Hide whitespace changes
Inline
Side-by-side
part.cpp
View file @
9398df0a
...
...
@@ -156,6 +156,8 @@ class FileKeeper
std
::
FILE
*
m_handle
;
};
K_PLUGIN_FACTORY
(
OkularPartFactory
,
registerPlugin
<
Okular
::
Part
>
();)
Okular
::
PartFactory
::
PartFactory
()
{
}
...
...
@@ -173,8 +175,6 @@ QObject *Okular::PartFactory::create(const char *iface, QWidget *parentWidget, Q
return
object
;
}
K_EXPORT_PLUGIN
(
Okular
::
PartFactory
()
)
static
QAction
*
actionForExportFormat
(
const
Okular
::
ExportFormat
&
format
,
QObject
*
parent
=
0
)
{
QAction
*
act
=
new
QAction
(
format
.
description
(),
parent
);
...
...
@@ -2967,6 +2967,6 @@ void Part::setReadWrite(bool readwrite)
}
// namespace Okular
#include
"
moc_
part.
cpp
"
#include
"part.
moc
"
/* kate: replace-tabs on; indent-width 4; */
shell/shell.cpp
View file @
9398df0a
...
...
@@ -89,12 +89,13 @@ void Shell::init()
// this routine will find and load our Part. it finds the Part by
// name which is a bad idea usually.. but it's alright in this
// case since our Part is made for this Shell
m_partFactory
=
KPluginLoader
(
"okularpart"
).
factory
();
KPluginLoader
loader
(
"okularpart"
);
m_partFactory
=
loader
.
factory
();
if
(
!
m_partFactory
)
{
// if we couldn't find our Part, we exit since the Shell by
// itself can't do anything useful
KMessageBox
::
error
(
this
,
i18n
(
"Unable to find the Okular component
."
));
KMessageBox
::
error
(
this
,
i18n
(
"Unable to find the Okular component
: %1"
,
loader
.
errorString
()
));
return
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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