• Yumin Yuan's avatar
    Add guard for context menu in some view event players · fd198ce4
    Yumin Yuan authored
    The pqAbstractItemViewEventPlayer, pqTreeViewEventPlayer and pqAbstractItemViewEventPlayerBase all try to handle an object command for the object's parent if the object itself is not what the players expects. This will not work in case of a context menu for these views, because the context menu's parent is the view, and in some cases, the view and the context menu commands are same, for example, "activate", so the view player will try to handle the command for context menu, which apparently will fail. The fix is not to look at the parent if it is a QMenu.
    fd198ce4
Name
Last commit
Last update
Examples Loading commit data...
Resources Loading commit data...
Testing Loading commit data...
Utilities Loading commit data...
CMakeLists.txt Loading commit data...
QtTestingConfig-install.cmake.in Loading commit data...
QtTestingConfig.cmake.in Loading commit data...
QtTestingConfigure.h.in Loading commit data...
QtTestingExport.h Loading commit data...
ReadMe.rst Loading commit data...
pq3DViewEventPlayer.cxx Loading commit data...
pq3DViewEventPlayer.h Loading commit data...
pq3DViewEventTranslator.cxx Loading commit data...
pq3DViewEventTranslator.h Loading commit data...
pqAbstractActivateEventPlayer.cxx Loading commit data...
pqAbstractActivateEventPlayer.h Loading commit data...
pqAbstractBooleanEventPlayer.cxx Loading commit data...
pqAbstractBooleanEventPlayer.h Loading commit data...
pqAbstractButtonEventTranslator.cxx Loading commit data...
pqAbstractButtonEventTranslator.h Loading commit data...
pqAbstractDoubleEventPlayer.cxx Loading commit data...
pqAbstractDoubleEventPlayer.h Loading commit data...
pqAbstractIntEventPlayer.cxx Loading commit data...
pqAbstractIntEventPlayer.h Loading commit data...
pqAbstractItemViewEventPlayer.cxx Loading commit data...
pqAbstractItemViewEventPlayer.h Loading commit data...
pqAbstractItemViewEventPlayerBase.cxx Loading commit data...
pqAbstractItemViewEventPlayerBase.h Loading commit data...
pqAbstractItemViewEventTranslator.cxx Loading commit data...
pqAbstractItemViewEventTranslator.h Loading commit data...
pqAbstractItemViewEventTranslatorBase.cxx Loading commit data...
pqAbstractItemViewEventTranslatorBase.h Loading commit data...
pqAbstractMiscellaneousEventPlayer.cxx Loading commit data...
pqAbstractMiscellaneousEventPlayer.h Loading commit data...
pqAbstractSliderEventTranslator.cxx Loading commit data...
pqAbstractSliderEventTranslator.h Loading commit data...
pqAbstractStringEventPlayer.cxx Loading commit data...
pqAbstractStringEventPlayer.h Loading commit data...
pqBasicWidgetEventPlayer.cxx Loading commit data...
pqBasicWidgetEventPlayer.h Loading commit data...
pqBasicWidgetEventTranslator.cxx Loading commit data...
pqBasicWidgetEventTranslator.h Loading commit data...
pqCheckEventOverlay.cxx Loading commit data...
pqCheckEventOverlay.h Loading commit data...
pqComboBoxEventPlayer.cxx Loading commit data...
pqComboBoxEventPlayer.h Loading commit data...
pqComboBoxEventTranslator.cxx Loading commit data...
pqComboBoxEventTranslator.h Loading commit data...
pqCommentEventPlayer.cxx Loading commit data...
pqCommentEventPlayer.h Loading commit data...
pqDoubleSpinBoxEventTranslator.cxx Loading commit data...
pqDoubleSpinBoxEventTranslator.h Loading commit data...
pqEventComment.cxx Loading commit data...
pqEventComment.h Loading commit data...
pqEventDispatcher.cxx Loading commit data...
pqEventDispatcher.h Loading commit data...
pqEventObserver.cxx Loading commit data...
pqEventObserver.h Loading commit data...
pqEventPlayer.cxx Loading commit data...
pqEventPlayer.h Loading commit data...
pqEventRecorder.cxx Loading commit data...
pqEventRecorder.h Loading commit data...
pqEventSource.h Loading commit data...
pqEventTranslator.cxx Loading commit data...
pqEventTranslator.h Loading commit data...
pqEventTypes.h Loading commit data...
pqLineEditEventTranslator.cxx Loading commit data...
pqLineEditEventTranslator.h Loading commit data...
pqListViewEventPlayer.cxx Loading commit data...
pqListViewEventPlayer.h Loading commit data...
pqListViewEventTranslator.cxx Loading commit data...
pqListViewEventTranslator.h Loading commit data...
pqMenuEventTranslator.cxx Loading commit data...
pqMenuEventTranslator.h Loading commit data...
pqNativeFileDialogEventPlayer.cxx Loading commit data...
pqNativeFileDialogEventPlayer.h Loading commit data...
pqNativeFileDialogEventTranslator.cxx Loading commit data...
pqNativeFileDialogEventTranslator.h Loading commit data...
pqObjectNaming.cxx Loading commit data...
pqObjectNaming.h Loading commit data...
pqPlayBackEventsDialog.cxx Loading commit data...
pqPlayBackEventsDialog.h Loading commit data...
pqPlayBackEventsDialog.ui Loading commit data...
pqPythonEventObserver.cxx Loading commit data...
pqPythonEventObserver.h Loading commit data...
pqPythonEventSource.cxx Loading commit data...
pqPythonEventSource.h Loading commit data...
pqRecordEventsDialog.cxx Loading commit data...
pqRecordEventsDialog.h Loading commit data...
pqRecordEventsDialog.ui Loading commit data...
pqSpinBoxEventTranslator.cxx Loading commit data...
pqSpinBoxEventTranslator.h Loading commit data...
pqStdoutEventObserver.cxx Loading commit data...
pqStdoutEventObserver.h Loading commit data...
pqTabBarEventPlayer.cxx Loading commit data...
pqTabBarEventPlayer.h Loading commit data...
pqTabBarEventTranslator.cxx Loading commit data...
pqTabBarEventTranslator.h Loading commit data...
pqTableViewEventPlayer.cxx Loading commit data...
pqTableViewEventPlayer.h Loading commit data...
pqTableViewEventTranslator.cxx Loading commit data...
pqTableViewEventTranslator.h Loading commit data...
pqTestUtility.cxx Loading commit data...
pqTestUtility.h Loading commit data...
pqThreadedEventSource.cxx Loading commit data...
pqThreadedEventSource.h Loading commit data...
pqTimer.cxx Loading commit data...
pqTimer.h Loading commit data...
pqTreeViewEventPlayer.cxx Loading commit data...
pqTreeViewEventPlayer.h Loading commit data...
pqTreeViewEventTranslator.cxx Loading commit data...
pqTreeViewEventTranslator.h Loading commit data...
pqWidgetEventPlayer.cxx Loading commit data...
pqWidgetEventPlayer.h Loading commit data...
pqWidgetEventTranslator.cxx Loading commit data...
pqWidgetEventTranslator.h Loading commit data...