Add a note about the bug the previous workaround was for

This commit is contained in:
Kovid Goyal 2016-05-21 08:44:55 +05:30
parent 1c1d8c4f9e
commit 96b44de9b6

View File

@ -164,6 +164,9 @@ class MainWindow(QMainWindow):
return QMainWindow.event(self, ev) return QMainWindow.event(self, ev)
def clone_menu(menu): def clone_menu(menu):
# This is needed to workaround a bug in Qt 5.5+ and Unity. When the same
# QAction object is used in both a QMenuBar and a QMenu, sub-menus of the
# QMenu flicker when rendered under Unity.
def clone_action(ac, parent): def clone_action(ac, parent):
if ac.isSeparator(): if ac.isSeparator():
ans = QAction(parent) ans = QAction(parent)