mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
another take on popups
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
8556ac72f3
commit
8c3c3c0aed
2 changed files with 4 additions and 4 deletions
|
@ -861,7 +861,7 @@ QApplication::Type QApplication::type()
|
|||
|
||||
QWidget *QApplication::activePopupWidget()
|
||||
{
|
||||
if (QApplicationPrivate::popupWidgets && !QApplicationPrivate::popupWidgets->isEmpty())
|
||||
if (QApplicationPrivate::popupWidgets)
|
||||
QApplicationPrivate::popupWidgets->last();
|
||||
return Q_NULLPTR;
|
||||
}
|
||||
|
|
|
@ -4097,9 +4097,9 @@ bool QETWidget::translateMouseEvent(const XEvent *event)
|
|||
if (type == 0) // don't send event
|
||||
return false;
|
||||
|
||||
QWidget *popup = qApp->activePopupWidget();
|
||||
if (popup) { // in popup mode
|
||||
QWidget *activePopupWidget = qApp->activePopupWidget();
|
||||
if (QApplicationPrivate::popupWidgets) { // in popup mode
|
||||
QWidget *popup = QApplicationPrivate::popupWidgets->last();
|
||||
QWidget *activePopupWidget = QApplicationPrivate::popupWidgets->last();
|
||||
if (popup != this) {
|
||||
if (event->type == LeaveNotify)
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue