30 """ |
30 """ |
31 Constructor |
31 Constructor |
32 |
32 |
33 @param parent reference to the parent widget (QWidget) |
33 @param parent reference to the parent widget (QWidget) |
34 """ |
34 """ |
35 super(IconEditorPalette, self).__init__(parent) |
35 super().__init__(parent) |
36 |
36 |
37 if self.layoutDirection == Qt.Orientation.Horizontal: |
37 if self.layoutDirection == Qt.Orientation.Horizontal: |
38 direction = QBoxLayout.Direction.LeftToRight |
38 direction = QBoxLayout.Direction.LeftToRight |
39 else: |
39 else: |
40 direction = QBoxLayout.Direction.TopToBottom |
40 direction = QBoxLayout.Direction.TopToBottom |