UI: Rename UI files for consistency
Changes comboBox-* and spinBox-* files to lowercase to be more consistent with the rest of the files in the UI directory.
This commit is contained in:
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);
|
||||
}
|
Reference in New Issue
Block a user