Enable QMenu::setNoReplayFor(QWidget *noReplayFor) for all platforms.
This prevents a tool button menu from being opened by a replayed click. This partially reverts 8301c0002280c10970cce1e17f634e74c61f2f5d . Task-number: QTBUG-36863 Change-Id: I396e3694de8b3d4ca916457c2b2df39798502530 Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com> Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
This commit is contained in:
parent
0c9c43c148
commit
74d4fcea4a
@ -3173,11 +3173,7 @@ void QMenu::internalDelayedPopup()
|
||||
*/
|
||||
void QMenu::setNoReplayFor(QWidget *noReplayFor)
|
||||
{
|
||||
#ifdef Q_OS_WIN
|
||||
d_func()->noReplayFor = noReplayFor;
|
||||
#else
|
||||
Q_UNUSED(noReplayFor);
|
||||
#endif
|
||||
}
|
||||
|
||||
/*!\internal
|
||||
|
Loading…
x
Reference in New Issue
Block a user