Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Thomas Pitiot
CGoGN
Commits
ceb16a9c
Commit
ceb16a9c
authored
May 11, 2011
by
Pierre Kraemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ajout cb_wheelEvent
parent
4bc17c66
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
include/Utils/qtSimple.h
include/Utils/qtSimple.h
+5
-1
src/Utils/qtgl.cpp
src/Utils/qtgl.cpp
+3
-0
No files found.
include/Utils/qtSimple.h
View file @
ceb16a9c
...
...
@@ -291,6 +291,11 @@ public:
*/
virtual
void
cb_mouseMove
(
int
button
,
int
x
,
int
y
)
{}
/**
* the mouse has been move (with button still pressed)
*/
virtual
void
cb_wheelEvent
(
int
delta
,
int
x
,
int
y
)
{}
/**
* key press CB (context is ok)
*/
...
...
@@ -365,7 +370,6 @@ public:
*/
std
::
string
selectFileSave
(
const
std
::
string
&
title
=
"open file"
,
const
std
::
string
&
dir
=
"."
,
const
std
::
string
&
filters
=
"all (*.*)"
);
public
slots
:
virtual
void
cb_New
()
{
std
::
cerr
<<
"callback not implemented"
<<
std
::
endl
;
}
virtual
void
cb_Open
()
{
std
::
cerr
<<
"callback not implemented"
<<
std
::
endl
;
}
...
...
src/Utils/qtgl.cpp
View file @
ceb16a9c
...
...
@@ -241,6 +241,9 @@ void GLWidget::wheelEvent(QWheelEvent* event)
newModel
=
1
;
updateGL
();
if
(
m_cbs
)
m_cbs
->
cb_wheelEvent
(
event
->
delta
(),
event
->
x
(),
getHeight
()
-
event
->
y
());
}
void
GLWidget
::
keyPressEvent
(
QKeyEvent
*
event
)
...
...
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