Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CamiTK
CamiTK Community Edition
Commits
8c4dcbdf
Commit
8c4dcbdf
authored
Mar 22, 2016
by
saubatn
Browse files
FIXED Rename new QActionGroup SIGNAL from selected to triggered (Qt5 changes).
parent
d655c9be
Changes
1
Hide whitespace changes
Inline
Side-by-side
sdk/libraries/core/viewer/InteractiveViewer.cpp
View file @
8c4dcbdf
...
...
@@ -798,7 +798,7 @@ void InteractiveViewer::initActions() {
// -- display mode
QActionGroup
*
displayGrp
=
new
QActionGroup
(
this
);
connect
(
displayGrp
,
SIGNAL
(
select
ed
(
QAction
*
)
),
this
,
SLOT
(
highlightModeChanged
(
QAction
*
)
)
);
connect
(
displayGrp
,
SIGNAL
(
trigger
ed
(
QAction
*
)
),
this
,
SLOT
(
highlightModeChanged
(
QAction
*
)
)
);
highlightSelectionAction
=
new
QAction
(
tr
(
"&Selection"
),
displayGrp
);
highlightSelectionAction
->
setCheckable
(
true
);
...
...
@@ -818,7 +818,7 @@ void InteractiveViewer::initActions() {
//-- camera mode
QActionGroup
*
cameraModeGrp
=
new
QActionGroup
(
this
);
connect
(
cameraModeGrp
,
SIGNAL
(
select
ed
(
QAction
*
)
),
this
,
SLOT
(
viewControlModeChanged
(
QAction
*
)
)
);
connect
(
cameraModeGrp
,
SIGNAL
(
trigger
ed
(
QAction
*
)
),
this
,
SLOT
(
viewControlModeChanged
(
QAction
*
)
)
);
controlModeTrackballAction
=
new
QAction
(
tr
(
"&Trackball"
),
cameraModeGrp
);
controlModeTrackballAction
->
setCheckable
(
true
);
...
...
@@ -834,7 +834,7 @@ void InteractiveViewer::initActions() {
//-- camera orientation mode
QActionGroup
*
cameraOrientationGrp
=
new
QActionGroup
(
this
);
connect
(
cameraOrientationGrp
,
SIGNAL
(
select
ed
(
QAction
*
)
),
this
,
SLOT
(
cameraOrientationChanged
(
QAction
*
)
)
);
connect
(
cameraOrientationGrp
,
SIGNAL
(
trigger
ed
(
QAction
*
)
),
this
,
SLOT
(
cameraOrientationChanged
(
QAction
*
)
)
);
cameraOrientationRightDownAction
=
new
QAction
(
tr
(
"x-right y-down z-back"
),
cameraOrientationGrp
);
cameraOrientationRightDownAction
->
setCheckable
(
true
);
...
...
@@ -901,7 +901,7 @@ void InteractiveViewer::initActions() {
//--- actions of the picking menu
QActionGroup
*
pickingGrp
=
new
QActionGroup
(
this
);
connect
(
pickingGrp
,
SIGNAL
(
select
ed
(
QAction
*
)
),
this
,
SLOT
(
pickingModeChanged
(
QAction
*
)
)
);
connect
(
pickingGrp
,
SIGNAL
(
trigger
ed
(
QAction
*
)
),
this
,
SLOT
(
pickingModeChanged
(
QAction
*
)
)
);
pickCellAction
=
new
QAction
(
QPixmap
(
":/pick_cell"
),
tr
(
"Pick &cell"
),
pickingGrp
);
pickCellAction
->
setCheckable
(
true
);
...
...
Write
Preview
Supports
Markdown
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