Skip to content

Commit 84955b2

Browse files
committed
parse_dash_results: Put images in scroll area
1 parent a65f518 commit 84955b2

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

scripts/parse_dash_results.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
QGridLayout,
4747
QPushButton,
4848
QDoubleSpinBox,
49-
QMessageBox)
49+
QMessageBox,
50+
QWidget,
51+
QScrollArea)
5052
import struct
5153
import glob
5254

@@ -92,8 +94,11 @@ def __init__(self, parent=None):
9294
self.mask_label = QLabel()
9395
self.new_mask_label = QLabel()
9496

95-
grid = QGridLayout()
97+
self.scrollArea = QScrollArea()
98+
self.widget = QWidget()
99+
96100
self.test_name_label = QLabel()
101+
grid = QGridLayout()
97102
grid.addWidget(self.test_name_label, 0, 0)
98103
grid.addWidget(QLabel('Control'), 1, 0)
99104
grid.addWidget(QLabel('Rendered'), 1, 1)
@@ -106,8 +111,10 @@ def __init__(self, parent=None):
106111
grid.addWidget(self.mask_label, 4, 0)
107112
grid.addWidget(self.new_mask_label, 4, 1)
108113

114+
self.widget.setLayout(grid)
115+
self.scrollArea.setWidget(self.widget)
109116
v_layout = QVBoxLayout()
110-
v_layout.addLayout(grid, 1)
117+
v_layout.addWidget(self.scrollArea, 1)
111118

112119
next_image_button = QPushButton()
113120
next_image_button.setText('Skip')

0 commit comments

Comments
 (0)