mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
Check that mouse press is inside view rectangle of CheckComboBox (#4681)
This commit is contained in:
commit
d191f83a62
1 changed files with 2 additions and 2 deletions
|
|
@ -138,7 +138,7 @@ bool CheckComboBox::eventFilter(QObject* receiver, QEvent* event)
|
|||
}
|
||||
case QEvent::MouseButtonPress: {
|
||||
auto ev = static_cast<QMouseEvent*>(event);
|
||||
m_containerMousePress = ev && view()->indexAt(ev->pos()).isValid();
|
||||
m_containerMousePress = ev && view()->indexAt(ev->pos()).isValid() && view()->rect().contains(ev->pos());
|
||||
break;
|
||||
}
|
||||
case QEvent::Wheel:
|
||||
|
|
@ -203,4 +203,4 @@ void CheckComboBox::paintEvent(QPaintEvent*)
|
|||
painter.drawControl(QStyle::CE_ComboBoxLabel, opt);
|
||||
}
|
||||
|
||||
#include "CheckComboBox.moc"
|
||||
#include "CheckComboBox.moc"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue