Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gepetto-viewer-corba
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gepetto
gepetto-viewer-corba
Commits
7e3233fc
Commit
7e3233fc
authored
7 years ago
by
Joseph Mirabel
Committed by
Joseph Mirabel
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix compilation warning.
parent
c2e66570
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/gepetto/gui/dialog/pluginmanagerdialog.hh
+4
-4
4 additions, 4 deletions
include/gepetto/gui/dialog/pluginmanagerdialog.hh
src/gui/dialog/pluginmanagerdialog.cc
+11
-11
11 additions, 11 deletions
src/gui/dialog/pluginmanagerdialog.cc
with
15 additions
and
15 deletions
include/gepetto/gui/dialog/pluginmanagerdialog.hh
+
4
−
4
View file @
7e3233fc
...
...
@@ -71,10 +71,10 @@ namespace gepetto {
void
unload
(
const
QString
&
name
);
private:
static
const
std
::
size_t
NAME
;
static
const
std
::
size_t
FILE
;
static
const
std
::
size_t
FULLPATH
;
static
const
std
::
size_t
VERSION
;
static
const
int
P_
NAME
;
static
const
int
P_
FILE
;
static
const
int
P_
FULLPATH
;
static
const
int
P_
VERSION
;
void
updateList
();
...
...
This diff is collapsed.
Click to expand it.
src/gui/dialog/pluginmanagerdialog.cc
+
11
−
11
View file @
7e3233fc
...
...
@@ -106,7 +106,7 @@ namespace gepetto {
updateList
();
ui_
->
pluginList
->
setColumnHidden
(
FILE
,
true
);
ui_
->
pluginList
->
setColumnHidden
(
P_
FILE
,
true
);
connect
(
ui_
->
pluginList
,
SIGNAL
(
currentItemChanged
(
QTableWidgetItem
*
,
QTableWidgetItem
*
)),
this
,
SLOT
(
onItemChanged
(
QTableWidgetItem
*
,
QTableWidgetItem
*
)));
...
...
@@ -123,7 +123,7 @@ namespace gepetto {
QTableWidgetItem
*
/*previous*/
)
{
if
(
!
current
)
return
;
QString
key
=
ui_
->
pluginList
->
item
(
current
->
row
(),
FILE
)
->
text
();
QString
key
=
ui_
->
pluginList
->
item
(
current
->
row
(),
P_
FILE
)
->
text
();
const
QPluginLoader
*
pl
=
pm_
->
plugins
()[
key
];
ui_
->
pluginMessage
->
setText
(
pm_
->
status
(
pl
));
}
...
...
@@ -132,7 +132,7 @@ namespace gepetto {
{
int
row
=
ui_
->
pluginList
->
rowAt
(
pos
.
y
());
if
(
row
==
-
1
)
return
;
QString
key
=
ui_
->
pluginList
->
item
(
row
,
FILE
)
->
text
();
QString
key
=
ui_
->
pluginList
->
item
(
row
,
P_
FILE
)
->
text
();
QMenu
contextMenu
(
tr
(
"Plugin"
),
ui_
->
pluginList
);
if
(
pm_
->
plugins
()[
key
]
->
isLoaded
())
{
QAction
*
unload
=
contextMenu
.
addAction
(
"&Unload"
,
&
signalMapper_
,
SLOT
(
map
()));
...
...
@@ -159,10 +159,10 @@ namespace gepetto {
updateList
();
}
const
std
::
size_
t
PluginManagerDialog
::
NAME
=
0
;
const
std
::
size_
t
PluginManagerDialog
::
FILE
=
1
;
const
std
::
size_
t
PluginManagerDialog
::
VERSION
=
2
;
const
std
::
size_
t
PluginManagerDialog
::
FULLPATH
=
3
;
const
in
t
PluginManagerDialog
::
P_
NAME
=
0
;
const
in
t
PluginManagerDialog
::
P_
FILE
=
1
;
const
in
t
PluginManagerDialog
::
P_
VERSION
=
2
;
const
in
t
PluginManagerDialog
::
P_
FULLPATH
=
3
;
void
PluginManagerDialog
::
updateList
()
{
...
...
@@ -182,10 +182,10 @@ namespace gepetto {
QIcon
icon
=
pm_
->
icon
(
p
.
value
());
ui_
->
pluginList
->
insertRow
(
ui_
->
pluginList
->
rowCount
());
ui_
->
pluginList
->
setItem
(
ui_
->
pluginList
->
rowCount
()
-
1
,
NAME
,
new
QTableWidgetItem
(
icon
,
name
));
ui_
->
pluginList
->
setItem
(
ui_
->
pluginList
->
rowCount
()
-
1
,
FILE
,
new
QTableWidgetItem
(
filename
));
ui_
->
pluginList
->
setItem
(
ui_
->
pluginList
->
rowCount
()
-
1
,
VERSION
,
new
QTableWidgetItem
(
version
));
ui_
->
pluginList
->
setItem
(
ui_
->
pluginList
->
rowCount
()
-
1
,
FULLPATH
,
new
QTableWidgetItem
(
fullpath
));
ui_
->
pluginList
->
setItem
(
ui_
->
pluginList
->
rowCount
()
-
1
,
P_
NAME
,
new
QTableWidgetItem
(
icon
,
name
));
ui_
->
pluginList
->
setItem
(
ui_
->
pluginList
->
rowCount
()
-
1
,
P_
FILE
,
new
QTableWidgetItem
(
filename
));
ui_
->
pluginList
->
setItem
(
ui_
->
pluginList
->
rowCount
()
-
1
,
P_
VERSION
,
new
QTableWidgetItem
(
version
));
ui_
->
pluginList
->
setItem
(
ui_
->
pluginList
->
rowCount
()
-
1
,
P_
FULLPATH
,
new
QTableWidgetItem
(
fullpath
));
}
ui_
->
pluginList
->
resizeColumnsToContents
();
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment