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

grep: switch from QFormLayout to QGridLayout

Changeset 270d95bec958

Parent 7367a3750845

by Steve Borho

Changes to one file · Browse files at 270d95bec958 Showing diff from parent 7367a3750845 Diff from another changeset...

 
62
63
64
65
66
67
68
69
70
 
 
 
 
 
 
 
 
 
 
 
71
72
73
74
 
 
75
76
77
78
79
80
 
88
89
90
91
 
92
93
94
 
62
63
64
 
 
 
 
 
 
65
66
67
68
69
70
71
72
73
74
75
76
77
78
 
79
80
81
 
 
82
83
84
 
92
93
94
 
95
96
97
98
@@ -62,19 +62,23 @@
  revision = QRadioButton(_('Revision'))   history = QRadioButton(_('All History'))   revle = QLineEdit() - form = QFormLayout() - form.addRow(QLabel(), working) - form.addRow(revle, revision) - form.addRow(QLabel(), history) - form.addRow(_('Includes:'), incle) - form.addRow(_('Excludes:'), excle) + grid = QGridLayout() + grid.addWidget(working, 0, 0) + grid.addWidget(revision, 1, 0) + grid.addWidget(revle, 1, 1) + grid.addWidget(history, 2, 0) + ilabel = QLabel(_('Includes:')) + elabel = QLabel(_('Excludes:')) + grid.addWidget(ilabel, 3, 0) + grid.addWidget(incle, 3, 1) + grid.addWidget(elabel, 4, 0) + grid.addWidget(excle, 4, 1)   working.setChecked(True)     def expandtoggled(checked): - for w in (incle, excle, working, history, revision, revle): + for w in (incle, excle, working, history, revision, revle, + ilabel, elabel):   w.setVisible(checked) - l = form.labelForField(w) - if l: l.setVisible(checked)   expand.setArrowType(checked and Qt.UpArrow or Qt.DownArrow)   expand = QToolButton()   expand.setIconSize(QSize(12, 12)) @@ -88,7 +92,7 @@
  hbox.addWidget(chk)   hbox.addWidget(expand)   layout.addLayout(hbox) - layout.addLayout(form) + layout.addLayout(grid)     tv = MatchTree(repo, self)   tv.setItemsExpandable(False)