Skip to content

Commit

Permalink
fixed error where waveformwidget layout would be wonky
Browse files Browse the repository at this point in the history
  • Loading branch information
jwebster-LANL committed Oct 10, 2024
1 parent c737dad commit d2c9938
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion InfraView/widgets/IPPlotViewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
class IPPlotViewer(IPUtils.IPSplitter):

def __init__(self, parent):
super().__init__(parent=parent)
super().__init__(orientation=Qt.Horizontal, parent=parent)
self.parent = parent

self.buildUI()
Expand Down
4 changes: 2 additions & 2 deletions InfraView/widgets/IPUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ def errorPopup(message, title="Oops..."):

class IPSplitter(QSplitter):

def __init__(self, orientation=Qt.Horizontal, parent=None):
def __init__(self, orientation, parent=None):
super().__init__(orientation, parent)

self.setStyleSheet("QSplitter::handle{ background-color: #DDD}")

self.setHandleWidth(20)


class CapsValidator(QValidator):
Expand Down
2 changes: 1 addition & 1 deletion InfraView/widgets/IPWaveformWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def buildUI(self):

self.plotViewer = IPPlotViewer.IPPlotViewer(self)

self.lh_splitter = IPUtils.IPSplitter(parent=self)
self.lh_splitter = IPUtils.IPSplitter(orientation=Qt.Vertical, parent=self)
self.lh_splitter.addWidget(self.plotViewer)
self.lh_splitter.addWidget(self.info_tabs)

Expand Down

0 comments on commit d2c9938

Please sign in to comment.