osx: let qcombobox specify target rect when showing popup
Let qcombobox use the new API for showing a native
popup menu (introduced with 1a47595
).
Change-Id: Id08ef9e59fdd47b2c1df84fa72e3a2c69fe187b0
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
parent
d92a9ca2d3
commit
afefc89d0f
@ -2439,7 +2439,7 @@ bool QComboBoxPrivate::showNativePopup()
|
||||
offset = QPoint(-1, 7);
|
||||
else if (q->testAttribute(Qt::WA_MacMiniSize))
|
||||
offset = QPoint(-2, 6);
|
||||
menu->showPopup(tlw, tlw->mapFromGlobal(q->mapToGlobal(offset)), currentItem);
|
||||
menu->showPopup(tlw, QRect(tlw->mapFromGlobal(q->mapToGlobal(offset)), QSize()), currentItem);
|
||||
menu->deleteLater();
|
||||
Q_FOREACH (QPlatformMenuItem *item, items)
|
||||
item->deleteLater();
|
||||
|
Loading…
Reference in New Issue
Block a user