Font size from 11 to 10 for CAQTextEntry as for CAQLabel
This commit is contained in:
+6
-6
@@ -43,7 +43,7 @@ class QTaggedLineEdit(QWidget):
|
||||
self.line_edit.setFixedHeight(24)
|
||||
font = QFont("sans serif", 16)
|
||||
fm = QFontMetricsF(font)
|
||||
self.line_edit.setMaximumWidth(fm.width(self.parameter)+20)
|
||||
self.line_edit.setMaximumWidth(int(fm.width(self.parameter)+20))
|
||||
self.label.setBuddy(self.line_edit)
|
||||
layout = QBoxLayout(
|
||||
QBoxLayout.LeftToRight if position == "LEFT" else \
|
||||
@@ -576,11 +576,11 @@ class CAQTextEntry(QLineEdit, PVGateway):
|
||||
def configure_widget(self):
|
||||
self.setFocusPolicy(Qt.StrongFocus)
|
||||
|
||||
f = QFont("Sans Serif")
|
||||
f.setPixelSize(11)
|
||||
|
||||
fm = QFontMetricsF(f)
|
||||
|
||||
#f = QFont("Sans Serif")
|
||||
#f.setPixelSize(11)
|
||||
#fm = QFontMetricsF(f)
|
||||
#As for CAQLabel
|
||||
fm = QFontMetricsF(QFont("Sans Serif", 10))
|
||||
qrect = fm.boundingRect(self.suggested_text)
|
||||
|
||||
_width_scaling_factor = 1.2
|
||||
|
||||
Reference in New Issue
Block a user