Skip to content

Commit 5154b47

Browse files
committed
fix qt warning
1 parent a354149 commit 5154b47

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plotpy/widgets/colormap_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(
4343
) -> None:
4444
super().__init__(parent)
4545

46-
self._vlayout = QW.QVBoxLayout(self)
46+
self._vlayout = QW.QVBoxLayout()
4747
self._vlayout.setContentsMargins(0, 0, 0, 0)
4848

4949
if active_colormap is None or active_colormap not in ALL_COLORMAPS:
@@ -70,7 +70,7 @@ def __init__(
7070
self, colormap=deepcopy(self._cmap_choice.currentData())
7171
)
7272

73-
hlayout = QW.QHBoxLayout(self)
73+
hlayout = QW.QHBoxLayout()
7474
hlayout.setAlignment(QC.Qt.AlignmentFlag.AlignRight)
7575

7676
regex = QC.QRegExp("[1-9a-zA-Z_]*")

0 commit comments

Comments
 (0)