Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

stable sync: corrected target combo size and added tooltip to items

Changeset 01a9dc0762f9

Parent 10a2c53059cc

by Piotr Klecha

Changes to one file · Browse files at 01a9dc0762f9 Showing diff from parent 10a2c53059cc Diff from another changeset...

 
151
152
153
 
 
154
155
156
 
339
340
341
 
342
343
344
345
346
347
 
348
349
350
 
151
152
153
154
155
156
157
158
 
341
342
343
344
345
346
347
348
349
350
351
352
353
354
@@ -151,6 +151,8 @@
  tb.addWidget(self.optionsbutton)     self.targetcombo = QComboBox() + self.targetcombo.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed) + self.targetcombo.setSizeAdjustPolicy(QComboBox.AdjustToMinimumContentsLength)   self.targetcombo.setEnabled(False)   self.targetcheckbox = QCheckBox(_('Target:'))   self.targetcheckbox.toggled.connect(self.targetcombo.setEnabled) @@ -339,12 +341,14 @@
  for name in self.repo.namedbranches:   uname = hglib.tounicode(name)   self.targetcombo.addItem(_('branch: ') + uname) + self.targetcombo.setItemData(self.targetcombo.count() - 1, name, Qt.ToolTipRole)   self.targetargs.append(['--branch', name])   if ctx.thgbranchhead() and name == ctx.branch():   selIndex = self.targetcombo.count() - 1   for name in self.repo._bookmarks.keys():   uname = hglib.tounicode(name)   self.targetcombo.addItem(_('bookmark: ') + uname) + self.targetcombo.setItemData(self.targetcombo.count() - 1, name, Qt.ToolTipRole)   self.targetargs.append(['--bookmark', name])   if name in ctx.bookmarks():   selIndex = self.targetcombo.count() - 1