eric6/Plugins/VcsPlugins/vcsGit/GitLogBrowserDialog.py

branch
without_py2_and_pyqt4
changeset 7201
6b42677d7043
parent 7192
a22eee00b052
child 7229
53054eb5b15a
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitLogBrowserDialog.py	Sun Sep 01 19:58:00 2019 +0200
+++ b/eric6/Plugins/VcsPlugins/vcsGit/GitLogBrowserDialog.py	Mon Sep 02 18:50:38 2019 +0200
@@ -17,12 +17,12 @@
 from PyQt5.QtGui import QCursor, QColor, QPixmap, QPainter, QPen, 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
 
-from Globals import qVersionTuple, strToQByteArray
+from Globals import strToQByteArray
 
 from .Ui_GitLogBrowserDialog import Ui_GitLogBrowserDialog
 
@@ -301,10 +301,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.__cherryAct = self.__actionsMenu.addAction(
             self.tr("Copy Commits"), self.__cherryActTriggered)
@@ -347,17 +344,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.

eric ide

mercurial