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
Frédéric Larue
CommonGUI
Commits
b5c20bea
Commit
b5c20bea
authored
Jan 08, 2019
by
Frédéric Larue
Browse files
Space Key center the view in 2D and 3D mode.
parent
b320d516
Changes
1
Hide whitespace changes
Inline
Side-by-side
GLViewer/GLViewer.cpp
View file @
b5c20bea
...
...
@@ -1947,7 +1947,6 @@ void GLViewer::keyPressEvent( QKeyEvent *evt )
{
switch
(
evt
->
key
()
)
{
case Qt::Key_Space: centerView(); break;
case
Qt
::
Key_4
:
{
QMatrix4x4
rot
;
...
...
@@ -2098,6 +2097,7 @@ void GLViewer::keyPressEvent( QKeyEvent *evt )
switch
(
evt
->
key
()
)
{
case
Qt
::
Key_C
:
toggleCulling
();
break
;
case
Qt
::
Key_Space
:
centerView
();
break
;
case
Qt
::
Key_Escape
:
{
if
(
isSelectionEnabled
()
)
...
...
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