expt with font size
This commit is contained in:
@@ -1000,7 +1000,6 @@ class PVGateway(QWidget):
|
||||
self._qt_readback_color_mode()
|
||||
#self.setStatusTip(self.status_tip)
|
||||
|
||||
|
||||
elif self.qt_object_name == self.PV_CONTROLLER:
|
||||
if self.color_mode == self.ACT_ON_BEAM:
|
||||
#self.setStatusTip("PV setting acts directly on beam")
|
||||
@@ -1009,7 +1008,6 @@ class PVGateway(QWidget):
|
||||
self.color_mode = self.NOT_ACT_ON_BEAM
|
||||
#self.setStatusTip("PV setting does not influence beam")
|
||||
|
||||
|
||||
#self._qt_property_selected =
|
||||
self._qt_dynamic_property_set(self.color_mode)
|
||||
|
||||
|
||||
+2
-2
@@ -566,6 +566,7 @@ class CAQTextEntry(QLineEdit, PVGateway):
|
||||
@Slot(int, int, int)
|
||||
@Slot(float, int, int)
|
||||
def receive_monitor_update(self, value, status, alarm_severity):
|
||||
self.setFont(QFont("Sans Serif", 12))
|
||||
PVGateway.receive_monitor_update(self, value, status, alarm_severity)
|
||||
|
||||
@Slot(int, str, int)
|
||||
@@ -576,7 +577,7 @@ class CAQTextEntry(QLineEdit, PVGateway):
|
||||
def configure_widget(self):
|
||||
self.setFocusPolicy(Qt.StrongFocus)
|
||||
#self.setFont(QFont("Sans Serif", 12))
|
||||
QLineEdit.setFont(self, QFont("Sans Serif", 8))
|
||||
#QLineEdit.setFont(self, QFont("Sans Serif", 8))
|
||||
#f = QFont("Sans Serif")
|
||||
#f.setPixelSize(11)
|
||||
#self.setFont(f)
|
||||
@@ -584,7 +585,6 @@ class CAQTextEntry(QLineEdit, PVGateway):
|
||||
#As for CAQLabel
|
||||
fm = QFontMetricsF(QFont("Sans Serif", 9))
|
||||
qrect = fm.boundingRect(self.suggested_text)
|
||||
|
||||
_width_scaling_factor = 1.2
|
||||
|
||||
self.setFixedHeight(int(fm.lineSpacing()*1.8))
|
||||
|
||||
Reference in New Issue
Block a user