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
08840a91
Commit
08840a91
authored
Aug 10, 2014
by
Frederik Gladhorn
Browse files
Remove old KPart factory
parent
9398df0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
part.cpp
View file @
08840a91
...
...
@@ -158,23 +158,6 @@ class FileKeeper
K_PLUGIN_FACTORY
(
OkularPartFactory
,
registerPlugin
<
Okular
::
Part
>
();)
Okular
::
PartFactory
::
PartFactory
()
{
}
Okular
::
PartFactory
::~
PartFactory
()
{
}
QObject
*
Okular
::
PartFactory
::
create
(
const
char
*
iface
,
QWidget
*
parentWidget
,
QObject
*
parent
,
const
QVariantList
&
args
,
const
QString
&
keyword
)
{
Q_UNUSED
(
keyword
);
Okular
::
Part
*
object
=
new
Okular
::
Part
(
parentWidget
,
parent
,
args
);
object
->
setReadWrite
(
QLatin1String
(
iface
)
==
QLatin1String
(
"KParts::ReadWritePart"
)
);
return
object
;
}
static
QAction
*
actionForExportFormat
(
const
Okular
::
ExportFormat
&
format
,
QObject
*
parent
=
0
)
{
QAction
*
act
=
new
QAction
(
format
.
description
(),
parent
);
...
...
part.h
View file @
08840a91
...
...
@@ -353,18 +353,6 @@ class OKULAR_PART_EXPORT Part : public KParts::ReadWritePart, public Okular::Doc
void
slotHandleActivatedSourceReference
(
const
QString
&
absFileName
,
int
line
,
int
col
,
bool
*
handled
);
};
class
PartFactory
:
public
KPluginFactory
{
Q_OBJECT
public:
PartFactory
();
virtual
~
PartFactory
();
protected:
virtual
QObject
*
create
(
const
char
*
iface
,
QWidget
*
parentWidget
,
QObject
*
parent
,
const
QVariantList
&
args
,
const
QString
&
keyword
);
};
}
#endif
...
...
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