Skip to content

Commit 00fba0e

Browse files
authored
[cuegui] Increase max width on lineEdit in Monitor Host widget (#1743)
This widget accepts regex and users usually filter a list of host, which becomes cumbersome to edit in a small field.
1 parent 23cdf54 commit 00fba0e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cuegui/cuegui/HostMonitor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ def setColumnOrder(self, settings):
100100
def __filterByHostNameSetup(self, layout):
101101
btn = QtWidgets.QLineEdit(self)
102102
btn.setMaximumHeight(FILTER_HEIGHT)
103-
btn.setFixedWidth(155)
103+
btn.setMinimumWidth(155)
104+
btn.setMaximumWidth(345)
105+
btn.sizeHint().setWidth(345)
104106
btn.setFocusPolicy(QtCore.Qt.StrongFocus)
105107
layout.addWidget(btn)
106108
self.__filterByHostName = btn

0 commit comments

Comments
 (0)