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
Sauvage
CGoGN
Commits
5febb75c
Commit
5febb75c
authored
Feb 20, 2012
by
Sylvain Thery
Browse files
bug of focus loosing: resolved
parent
43b1b8e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Utils/Qt/qtgl.cpp
View file @
5febb75c
...
...
@@ -211,6 +211,7 @@ void GLWidget::mousePressEvent(QMouseEvent* event)
if
(
m_cbs
)
m_cbs
->
cb_mousePress
(
event
->
button
(),
event
->
x
(),
getHeight
()
-
event
->
y
());
setFocus
(
Qt
::
MouseFocusReason
);
}
void
GLWidget
::
mouseReleaseEvent
(
QMouseEvent
*
event
)
...
...
@@ -330,7 +331,10 @@ void GLWidget::closeEvent(QCloseEvent *event)
void
GLWidget
::
keyPressEvent
(
QKeyEvent
*
event
)
{
if
(
event
->
key
()
==
Qt
::
Key_Escape
)
{
close
();
m_cbs
->
close
();
}
m_state_modifier
=
event
->
modifiers
();
...
...
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