Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Leander Schulten
Lichtsteuerung
Commits
ab02f862
Commit
ab02f862
authored
Feb 12, 2018
by
Leander Schulten
Browse files
Fix Scroll Bug with Windows
parent
906d0226
Changes
1
Hide whitespace changes
Inline
Side-by-side
channelprogrammeditor.cpp
View file @
ab02f862
...
...
@@ -526,9 +526,13 @@ void ChannelProgrammEditor::keyPressEvent(QKeyEvent *event){
}
void
ChannelProgrammEditor
::
wheelEvent
(
QWheelEvent
*
event
){
#ifdef Q_OS_WIN
xDiff
=
event
->
angleDelta
().
y
();
#else
xDiff
=
event
->
pixelDelta
().
x
();
#endif
event
->
accept
();
qDebug
()
<<
"wheel : "
<<
event
->
pixelDelta
()
.
x
()
<<
'\n'
;
qDebug
()
<<
"wheel : "
<<
event
->
pixelDelta
()
<<
' '
<<
event
->
angleDelta
()
<<
' '
<<
event
->
delta
()
<<
'\n'
;
update
();
}
...
...
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