Skip to content

Commit

Permalink
Limit lineedit height in parametertree to match spinbox style
Browse files Browse the repository at this point in the history
  • Loading branch information
campagnola committed Dec 8, 2016
1 parent 9823436 commit f0e26d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyqtgraph/parametertree/parameterTypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ def makeWidget(self):
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))
Expand Down

0 comments on commit f0e26d3

Please sign in to comment.