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

stable qtlib: move Spacer from status to qtlib

Changeset f6446676b375

Parent 69616375613b

by David Golub

Changes to 2 files · Browse files at f6446676b375 Showing diff from parent 69616375613b Diff from another changeset...

 
939
940
941
 
 
 
 
 
 
 
 
 
 
 
942
943
944
 
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
@@ -939,6 +939,17 @@
  def __getattr__(self, name):   return getattr(self._widget, name)   +class Spacer(QWidget): + """Spacer to separate controls in a toolbar""" + + def __init__(self, width, height, parent=None): + QWidget.__init__(self, parent) + self.width = width + self.height = height + + def sizeHint(self): + return QSize(self.width, self.height) +  def getCurrentUsername(widget, repo, opts=None):   if opts:   # 1. Override has highest priority
 
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
 
128
129
130
131
 
132
133
134
 
35
36
37
 
 
 
 
 
 
 
 
 
38
39
40
 
119
120
121
 
122
123
124
125
@@ -35,15 +35,6 @@
   _colors = {}   -class Spacer(QWidget): - def __init__(self, width, height, parent=None): - QWidget.__init__(self, parent) - self.width = width - self.height = height - - def sizeHint(self): - return QSize(self.width, self.height) -  class StatusWidget(QWidget):   '''Working copy status widget   SIGNALS: @@ -128,7 +119,7 @@
  self.filelistToolbar = QToolBar(_('Status File List Toolbar'))   self.filelistToolbar.setIconSize(QSize(16,16))   hbox.addWidget(self.filelistToolbar) - self.filelistToolbar.addWidget(Spacer(2, 2)) + self.filelistToolbar.addWidget(qtlib.Spacer(2, 2))   self.filelistToolbar.addWidget(self.checkAllNoneBtn)   self.filelistToolbar.addSeparator()   self.filelistToolbar.addWidget(le)