New upstream version 23.2.1+dfsg1
This commit is contained in:
parent
cdc9a9fc87
commit
b14f9eae6d
1017 changed files with 37232 additions and 11111 deletions
14
UI/spinbox-ignorewheel.cpp
Normal file
14
UI/spinbox-ignorewheel.cpp
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#include "spinbox-ignorewheel.hpp"
|
||||
|
||||
SpinBoxIgnoreScroll::SpinBoxIgnoreScroll(QWidget *parent) : QSpinBox(parent)
|
||||
{
|
||||
setFocusPolicy(Qt::StrongFocus);
|
||||
}
|
||||
|
||||
void SpinBoxIgnoreScroll::wheelEvent(QWheelEvent *event)
|
||||
{
|
||||
if (!hasFocus())
|
||||
event->ignore();
|
||||
else
|
||||
QSpinBox::wheelEvent(event);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue