diff -r ebab8ba287e6 -r 6b42677d7043 eric6/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py --- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py Sun Sep 01 19:58:00 2019 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py Mon Sep 02 18:50:38 2019 +0200 @@ -18,7 +18,7 @@ from PyQt5.QtGui import QCursor, QColor, QPixmap, QPainter, QPen, QBrush, \ QIcon, QTextCursor from PyQt5.QtWidgets import QWidget, QDialogButtonBox, QHeaderView, \ - QTreeWidgetItem, QApplication, QLineEdit, QMenu, QInputDialog, QToolTip + QTreeWidgetItem, QApplication, QLineEdit, QMenu, QInputDialog from E5Gui.E5Application import e5App from E5Gui import E5MessageBox, E5FileDialog @@ -31,7 +31,7 @@ import UI.PixmapCache import Preferences import Utilities -from Globals import qVersionTuple, strToQByteArray +from Globals import strToQByteArray COLORNAMES = ["blue", "darkgreen", "red", "green", "darkblue", "purple", "cyan", "olive", "magenta", "darkred", "darkmagenta", @@ -258,10 +258,7 @@ """ self.__actionsMenu = QMenu() self.__actionsMenu.setTearOffEnabled(True) - if qVersionTuple() >= (5, 1, 0): - self.__actionsMenu.setToolTipsVisible(True) - else: - self.__actionsMenu.hovered.connect(self.__actionsMenuHovered) + self.__actionsMenu.setToolTipsVisible(True) self.__graftAct = self.__actionsMenu.addAction( UI.PixmapCache.getIcon("vcsGraft.png"), @@ -398,17 +395,6 @@ UI.PixmapCache.getIcon("actionsToolButton.png")) self.actionsButton.setMenu(self.__actionsMenu) - def __actionsMenuHovered(self, action): - """ - Private slot to show the tooltip for an action menu entry. - - @param action action to show tooltip for - @type QAction - """ - QToolTip.showText( - QCursor.pos(), action.toolTip(), - self.__actionsMenu, self.__actionsMenu.actionGeometry(action)) - def __initData(self): """ Private method to (re-)initialize some data.