Move the filter text boxes to the top so that they are closer to the first result

This commit is contained in:
Kovid Goyal 2014-03-13 08:32:30 +05:30
parent a32a1e6f79
commit d78b9c3f0d

View File

@ -560,7 +560,7 @@ class InsertLink(Dialog):
self.fnl = fnl = QVBoxLayout()
self.la1 = la = QLabel(_('Choose a &file to link to:'))
la.setBuddy(fn)
fnl.addWidget(la), fnl.addWidget(fn), fnl.addWidget(f)
fnl.addWidget(la), fnl.addWidget(f), fnl.addWidget(fn)
h.addLayout(fnl), h.setStretch(0, 2)
fn, f = create_filterable_names_list([], filter_text=_('Filter locations'), parent=self)
@ -570,7 +570,7 @@ class InsertLink(Dialog):
self.anl = fnl = QVBoxLayout()
self.la2 = la = QLabel(_('Choose a &location (anchor) in the file:'))
la.setBuddy(fn)
fnl.addWidget(la), fnl.addWidget(fn), fnl.addWidget(f)
fnl.addWidget(la), fnl.addWidget(f), fnl.addWidget(fn)
h.addLayout(fnl), h.setStretch(1, 1)
self.tl = tl = QHBoxLayout()