Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py

changeset 5448
1a86766ed19a
parent 5445
b24720037f1f
child 5449
7679d1d3671a
equal deleted inserted replaced
5446:7f48d7f8eef0 5448:1a86766ed19a
172 self.logTree.setIconSize( 172 self.logTree.setIconSize(
173 QSize(100 * self.__rowHeight, self.__rowHeight)) 173 QSize(100 * self.__rowHeight, self.__rowHeight))
174 self.BookmarksColumn = self.logTree.columnCount() 174 self.BookmarksColumn = self.logTree.columnCount()
175 self.logTree.headerItem().setText( 175 self.logTree.headerItem().setText(
176 self.BookmarksColumn, self.tr("Bookmarks")) 176 self.BookmarksColumn, self.tr("Bookmarks"))
177
178 self.__logTreeNormalFont = self.logTree.font()
179 self.__logTreeNormalFont.setBold(False)
180 self.__logTreeBoldFont = self.logTree.font()
181 self.__logTreeBoldFont.setBold(True)
177 182
178 self.detailsEdit.anchorClicked.connect(self.__revisionClicked) 183 self.detailsEdit.anchorClicked.connect(self.__revisionClicked)
179 184
180 self.__initActionsMenu() 185 self.__initActionsMenu()
181 186
1382 @param previous reference to the old current item (QTreeWidgetItem) 1387 @param previous reference to the old current item (QTreeWidgetItem)
1383 """ 1388 """
1384 self.__updateGui(current) 1389 self.__updateGui(current)
1385 self.__updateDiffButtons() 1390 self.__updateDiffButtons()
1386 self.__updateToolMenuActions() 1391 self.__updateToolMenuActions()
1392
1393 # Highlight the current entry using a bold font
1394 for col in range(self.logTree.columnCount()):
1395 current and current.setFont(col, self.__logTreeBoldFont)
1396 previous and previous.setFont(col, self.__logTreeNormalFont)
1387 1397
1388 @pyqtSlot() 1398 @pyqtSlot()
1389 def on_logTree_itemSelectionChanged(self): 1399 def on_logTree_itemSelectionChanged(self):
1390 """ 1400 """
1391 Private slot called, when the selection has changed. 1401 Private slot called, when the selection has changed.

eric ide

mercurial