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
Cervisia
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
SDK
Cervisia
Commits
5149264f
Commit
5149264f
authored
Sep 19, 2007
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapt to new kpluginfactory
svn path=/trunk/KDE/kdesdk/cervisia/; revision=714320
parent
d3f0e8f1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
cervisiapart.cpp
cervisiapart.cpp
+4
-2
cervisiapart.h
cervisiapart.h
+1
-3
cervisiashell.cpp
cervisiashell.cpp
+2
-3
No files found.
cervisiapart.cpp
View file @
5149264f
...
...
@@ -83,10 +83,12 @@ using Cervisia::TagDialog;
#define COMMIT_SPLIT_CHAR '\r'
K_EXPORT_COMPONENT_FACTORY
(
libcervisiapart
,
CervisiaFactory
)
K_PLUGIN_FACTORY
(
CervisiaFactory
,
registerPlugin
<
CervisiaPart
>
();
)
K_EXPORT_PLUGIN
(
CervisiaFactory
(
"cervisiapart"
)
)
CervisiaPart
::
CervisiaPart
(
QWidget
*
parentWidget
,
QObject
*
parent
,
const
Q
String
List
&
/*args*/
)
QObject
*
parent
,
const
Q
Variant
List
&
/*args*/
)
:
KParts
::
ReadOnlyPart
(
parent
)
,
hasRunningJob
(
false
)
,
opt_hideFiles
(
false
)
...
...
cervisiapart.h
View file @
5149264f
...
...
@@ -56,7 +56,7 @@ class CervisiaPart : public KParts::ReadOnlyPart
Q_OBJECT
public:
CervisiaPart
(
QWidget
*
parentWidget
,
QObject
*
parent
,
const
Q
StringList
&
args
=
QString
List
());
CervisiaPart
(
QWidget
*
parentWidget
,
QObject
*
parent
,
const
Q
VariantList
&
args
=
QVariant
List
());
virtual
~
CervisiaPart
();
/**
...
...
@@ -191,8 +191,6 @@ private:
QString
m_cvsServiceInterfaceName
;
};
typedef
KParts
::
GenericFactory
<
CervisiaPart
>
CervisiaFactory
;
/**
* A mysterious class, needed to make Konqueror intrgration work.
*/
...
...
cervisiashell.cpp
View file @
5149264f
...
...
@@ -41,11 +41,10 @@ CervisiaShell::CervisiaShell( const char *name )
setObjectName
(
name
);
setXMLFile
(
"cervisiashellui.rc"
);
K
LibFactory
*
factory
=
KLibLoader
::
self
()
->
factory
(
"libcervisiapart"
);
K
PluginFactory
*
factory
=
KPluginLoader
(
"libcervisiapart"
).
factory
(
);
if
(
factory
)
{
m_part
=
static_cast
<
KParts
::
ReadOnlyPart
*>
(
factory
->
create
(
this
,
"KParts::ReadOnlyPart"
));
m_part
=
factory
->
create
<
KParts
::
ReadOnlyPart
>
(
this
);
if
(
m_part
)
{
m_part
->
setObjectName
(
"cervisiaview"
);
setCentralWidget
(
m_part
->
widget
());
...
...
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