spinbox selects only numerical portion of text on focus-in
This commit is contained in:
parent
c97c5f51e2
commit
5ddbb611d1
@ -264,6 +264,10 @@ class SpinBox(QtGui.QAbstractSpinBox):
|
|||||||
return
|
return
|
||||||
le.setSelection(0, index)
|
le.setSelection(0, index)
|
||||||
|
|
||||||
|
def focusInEvent(self, ev):
|
||||||
|
super(SpinBox, self).focusInEvent(ev)
|
||||||
|
self.selectNumber()
|
||||||
|
|
||||||
def value(self):
|
def value(self):
|
||||||
"""
|
"""
|
||||||
Return the value of this SpinBox.
|
Return the value of this SpinBox.
|
||||||
|
Loading…
Reference in New Issue
Block a user