Move userlist search box down but keep focus
This commit is contained in:
parent
f76a5529b8
commit
23fe489c26
1 changed files with 3 additions and 1 deletions
4
menus.py
4
menus.py
|
@ -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"]
|
||||||
|
|
Loading…
Reference in a new issue