mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
Set column size
This commit is contained in:
parent
9bf3bcb75d
commit
9fc6dc6878
@ -36,6 +36,8 @@ class SearchAndReplaceWidget(Widget, Ui_Form):
|
||||
proto.setFlags(Qt.ItemFlags(Qt.ItemIsSelectable + Qt.ItemIsEnabled))
|
||||
self.opt_search_replace.setItemPrototype(proto)
|
||||
self.opt_search_replace.setColumnCount(2)
|
||||
self.opt_search_replace.setColumnWidth(0, 300)
|
||||
self.opt_search_replace.setColumnWidth(1, 300)
|
||||
self.opt_search_replace.setHorizontalHeaderLabels(['Search Expression', 'Replacement'])
|
||||
|
||||
self.connect(self.sr_add, SIGNAL('clicked()'), self.sr_add_clicked)
|
||||
|
Loading…
x
Reference in New Issue
Block a user