Skip to content

Commit

Permalink
Merge pull request #698 from ivany4/fix/master/embedded-display-init-…
Browse files Browse the repository at this point in the history
…for-designer

ENH: Move Qt Designer related styling in PyDMEmbeddedDisplay to init_for_designer
  • Loading branch information
hhslepicka authored Sep 29, 2020
2 parents 0cedca5 + 0cb218f commit d0c07bb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pydm/widgets/embedded_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit d0c07bb

Please sign in to comment.