mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 16:32:16 -07:00
Qt5 support.
This commit is contained in:
parent
39af6f211a
commit
09b8904ed8
1 changed files with 4 additions and 0 deletions
|
|
@ -69,7 +69,11 @@ void SettingsButtonWidget::onPopupClosed() const
|
|||
|
||||
void SettingsButtonWidget::mousePressEvent(QMouseEvent *event)
|
||||
{
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
|
||||
if (popup->isVisible() && !popup->geometry().contains(event->globalPosition().toPoint())) {
|
||||
#else
|
||||
if (popup->isVisible() && !popup->geometry().contains(event->globalPos())) {
|
||||
#endif
|
||||
popup->close();
|
||||
}
|
||||
QWidget::mousePressEvent(event);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue