Added some eye candy to the Mercurial tags and branches list dialog context menus and fixed a focus issue.

Tue, 15 Nov 2016 19:01:53 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 15 Nov 2016 19:01:53 +0100
changeset 5323
8c2a414262a4
parent 5322
c2cabdca0734
child 5324
337c27027c66

Added some eye candy to the Mercurial tags and branches list dialog context menus and fixed a focus issue.

Plugins/VcsPlugins/vcsMercurial/HgTagBranchListDialog.py file | annotate | diff | comparison | revisions
--- a/Plugins/VcsPlugins/vcsMercurial/HgTagBranchListDialog.py	Mon Nov 14 19:58:22 2016 +0100
+++ b/Plugins/VcsPlugins/vcsMercurial/HgTagBranchListDialog.py	Tue Nov 15 19:01:53 2016 +0100
@@ -25,6 +25,8 @@
 
 from .Ui_HgTagBranchListDialog import Ui_HgTagBranchListDialog
 
+import UI.PixmapCache
+
 
 class HgTagBranchListDialog(QDialog, Ui_HgTagBranchListDialog):
     """
@@ -194,6 +196,7 @@
             if items:
                 self.tagList.setCurrentItem(items[0])
                 self.__currentRevision = ""
+                self.tagList.setFocus(Qt.OtherFocusReason)
     
     def on_buttonBox_clicked(self, button):
         """
@@ -419,9 +422,13 @@
         if itm is not None:
             menu = QMenu(self.tagList)
             if self.tagsMode:
-                menu.addAction(self.tr("Switch to"), self.__switchTo)
+                menu.addAction(
+                    UI.PixmapCache.getIcon("vcsSwitch.png"),
+                    self.tr("Switch to"), self.__switchTo)
             else:
-                menu.addAction(self.tr("Switch to"), self.__switchTo)
+                menu.addAction(
+                    UI.PixmapCache.getIcon("vcsSwitch.png"),
+                    self.tr("Switch to"), self.__switchTo)
                 menu.addSeparator()
                 act = menu.addAction(self.tr("Close Branch"),
                                      self.__closeBranch)

eric ide

mercurial