Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

settings: make data entry widgets fixed width

Perhaps it needs to be the width of a fixed string in the current
font, but it definitely needs to be fixed.

Changeset 55ab73ad1811

Parent 55bb7eae5efd

by Steve Borho

Changes to one file · Browse files at 55ab73ad1811 Showing diff from parent 55bb7eae5efd Diff from another changeset...

 
25
26
27
 
28
29
30
 
42
43
44
 
45
46
47
 
114
115
116
 
117
118
119
 
145
146
147
 
148
149
150
 
25
26
27
28
29
30
31
 
43
44
45
46
47
48
49
 
116
117
118
119
120
121
122
 
148
149
150
151
152
153
154
@@ -25,6 +25,7 @@
 # we need a consistent icon set    _unspecstr = _('<unspecified>') +ENTRY_WIDTH = 300    class SettingsCombo(QComboBox):   def __init__(self, parent=None, **opts): @@ -42,6 +43,7 @@
  slist = settings.value('settings/'+opts['cpath']).toStringList()   self.previous = [s for s in slist if s]   self.setDisabled(opts['readonly']) + self.setFixedWidth(ENTRY_WIDTH)     def resetList(self):   self.clear() @@ -114,6 +116,7 @@
  self.curvalue = None   self.setEchoMode(QLineEdit.Password)   self.setDisabled(opts['readonly']) + self.setFixedWidth(ENTRY_WIDTH)     def focusInEvent(self, e):   self.opts['descwidget'].setHtml(self.opts['tooltip']) @@ -145,6 +148,7 @@
  cpath = self.opts['cpath']   assert cpath.startswith('tortoisehg.')   self.fname = cpath[11:] + self.setFixedWidth(ENTRY_WIDTH)     def focusInEvent(self, e):   self.opts['descwidget'].setHtml(self.opts['tooltip'])