Changeset 305 for trunk/src/gui/widgets


Ignore:
Timestamp:
Nov 9, 2009, 5:22:15 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: QMenu: Don't replay mouse events for a widget that is an origin of the popup (like QPushbutton with setMenu()) to behave more native (similar to Win32). Prior to this pressing a button that was already pressed and displaying a popup would trigger button releases and presses again which doesn't look nice.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/widgets/qmenu.cpp

    r277 r305  
    30003000void QMenu::setNoReplayFor(QWidget *noReplayFor)
    30013001{
    3002 #ifdef Q_WS_WIN
     3002#if
    30033003    d_func()->noReplayFor = noReplayFor;
    30043004#else
Note: See TracChangeset for help on using the changeset viewer.