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/combobox-ignorewheel.cpp
Normal file
14
UI/combobox-ignorewheel.cpp
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#include "combobox-ignorewheel.hpp"
|
||||
|
||||
ComboBoxIgnoreScroll::ComboBoxIgnoreScroll(QWidget *parent) : QComboBox(parent)
|
||||
{
|
||||
setFocusPolicy(Qt::StrongFocus);
|
||||
}
|
||||
|
||||
void ComboBoxIgnoreScroll::wheelEvent(QWheelEvent *event)
|
||||
{
|
||||
if (!hasFocus())
|
||||
event->ignore();
|
||||
else
|
||||
QComboBox::wheelEvent(event);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue