diff --git a/dayu_widgets/menu.py b/dayu_widgets/menu.py index b5cbe585..a78de2c0 100644 --- a/dayu_widgets/menu.py +++ b/dayu_widgets/menu.py @@ -16,10 +16,10 @@ import re # Import third-party modules +from Qt import QtCompat from Qt import QtCore from Qt import QtGui from Qt import QtWidgets -from Qt.QtCompat import isValid import six # Import local modules @@ -259,7 +259,7 @@ def mouseMoveEvent(self, event): action = None self.setActiveAction(action) - if action and isValid(action) and not action.isSeparator(): + if action and QtCompat.isValid(action) and not action.isSeparator(): def ensureVisible(): self.delayTimer.timeout.disconnect()