fix(curve settings): add initial size hint

This commit is contained in:
wakonig_k authored and Klaus Wakonig committed 2025-06-22 19:39:19 +02:00
1 parent b51de1a00e
commit a9708f6d8f
1 file changed
+7
@@ -2,6 +2,7 @@ from __future__ import annotations
from typing import TYPE_CHECKING
from qtpy.QtCore import QSize
from qtpy.QtWidgets import (
QComboBox,
QGroupBox,
@@ -35,6 +36,12 @@ class CurveSetting(SettingWidget):
self._init_x_box()
self._init_y_box()
def sizeHint(self) -> QSize:
"""
Returns the size hint for the settings widget.
"""
return QSize(800, 500)
def _init_x_box(self):
self.x_axis_box = QGroupBox("X Axis")
self.x_axis_box.layout = QHBoxLayout(self.x_axis_box)