Limit lineedit height in parametertree to match spinbox style
This commit is contained in:
parent
9823436273
commit
f0e26d3add
@ -122,6 +122,7 @@ class WidgetParameterItem(ParameterItem):
|
|||||||
self.hideWidget = False
|
self.hideWidget = False
|
||||||
elif t == 'str':
|
elif t == 'str':
|
||||||
w = QtGui.QLineEdit()
|
w = QtGui.QLineEdit()
|
||||||
|
w.setStyleSheet('border: 0px')
|
||||||
w.sigChanged = w.editingFinished
|
w.sigChanged = w.editingFinished
|
||||||
w.value = lambda: asUnicode(w.text())
|
w.value = lambda: asUnicode(w.text())
|
||||||
w.setValue = lambda v: w.setText(asUnicode(v))
|
w.setValue = lambda v: w.setText(asUnicode(v))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user