Move userlist search box down but keep focus

This commit is contained in:
Kiooeht 2012-06-04 18:22:09 -07:00
parent f76a5529b8
commit 23fe489c26

View file

@ -1492,8 +1492,8 @@ class PesterUserlist(QtGui.QDialog):
layout_0 = QtGui.QVBoxLayout() layout_0 = QtGui.QVBoxLayout()
layout_0.addWidget(self.label) layout_0.addWidget(self.label)
layout_0.addWidget(self.searchbox)
layout_0.addWidget(self.userarea) layout_0.addWidget(self.userarea)
layout_0.addWidget(self.searchbox)
layout_0.addWidget(self.ok) layout_0.addWidget(self.ok)
self.setLayout(layout_0) self.setLayout(layout_0)
@ -1506,6 +1506,8 @@ class PesterUserlist(QtGui.QDialog):
self, self,
QtCore.SLOT('updateUserPresent(QString, QString, QString)')) QtCore.SLOT('updateUserPresent(QString, QString, QString)'))
self.updateUsers() self.updateUsers()
self.searchbox.setFocus()
@QtCore.pyqtSlot() @QtCore.pyqtSlot()
def updateUsers(self): def updateUsers(self):
names = self.mainwindow.namesdb["#pesterchum"] names = self.mainwindow.namesdb["#pesterchum"]