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

clone: use ExpanderLabel to fold options

Changeset 8af00bd3b932

Parent 85e36b671df9

by Yuki KODAMA

Changes to one file · Browse files at 8af00bd3b932 Showing diff from parent 85e36b671df9 Diff from another changeset...

 
67
68
69
 
 
 
 
 
70
71
72
73
74
75
76
 
126
127
128
129
130
131
132
133
134
135
136
 
159
160
161
162
163
164
165
 
67
68
69
70
71
72
73
74
75
76
 
 
77
78
79
 
129
130
131
 
 
 
 
 
132
133
134
 
157
158
159
 
160
161
162
@@ -67,10 +67,13 @@
  grid.addWidget(self.dest_btn, 1, 2)     ### options + expander = qtlib.ExpanderLabel(_('Options'), False) + expander.expanded.connect(self.show_options) + grid.addWidget(expander, 2, 0, Qt.AlignLeft | Qt.AlignTop) + + ### options   optbox = QVBoxLayout()   optbox.setSpacing(6) - self.optlabel = QLabel(_('Options:')) - grid.addWidget(self.optlabel, 2, 0, Qt.AlignLeft | Qt.AlignTop)   grid.addLayout(optbox, 2, 1, 1, 2)     hbox = QHBoxLayout() @@ -126,11 +129,6 @@
  self.detail_btn.setAutoDefault(False)   self.detail_btn.setCheckable(True)   self.detail_btn.toggled.connect(self.detail_toggled) - self.options_btn = buttons.addButton(_('Options'), - QDialogButtonBox.ResetRole) - self.options_btn.setAutoDefault(False) - self.options_btn.setCheckable(True) - self.options_btn.toggled.connect(self.show_options)   box.addWidget(buttons)     # dialog setting @@ -159,7 +157,6 @@
  ### Private Methods ###     def show_options(self, visible): - self.optlabel.setVisible(visible)   self.rev_chk.setVisible(visible)   self.rev_text.setVisible(visible)   self.noupdate_chk.setVisible(visible)