From 0cb218f6e27fe3812cf70df6eb33c5965812469f Mon Sep 17 00:00:00 2001 From: Ivan Sinkarenko Date: Wed, 16 Sep 2020 09:40:24 +0200 Subject: [PATCH] Move Qt Designer related styling in PyDMEmbeddedDisplay to init_for_designer --- pydm/widgets/embedded_display.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pydm/widgets/embedded_display.py b/pydm/widgets/embedded_display.py index 3279e2425..7d506824c 100644 --- a/pydm/widgets/embedded_display.py +++ b/pydm/widgets/embedded_display.py @@ -43,11 +43,9 @@ def __init__(self, parent=None): self.layout.addWidget(self.err_label) self.layout.setContentsMargins(0, 0, 0, 0) self.err_label.hide() - if not is_pydm_app(): - self.setFrameShape(QFrame.Box) - else: - self.setFrameShape(QFrame.NoFrame) - + + def init_for_designer(self): + self.setFrameShape(QFrame.Box) def minimumSizeHint(self): """