Limit lineedit height in parametertree to match spinbox style

This commit is contained in:
Luke Campagnola 2016-12-07 17:34:44 -08:00
parent 9823436273
commit f0e26d3add

View File

@ -122,6 +122,7 @@ class WidgetParameterItem(ParameterItem):
self.hideWidget = False
elif t == 'str':
w = QtGui.QLineEdit()
w.setStyleSheet('border: 0px')
w.sigChanged = w.editingFinished
w.value = lambda: asUnicode(w.text())
w.setValue = lambda v: w.setText(asUnicode(v))