0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-12 18:51:50 +02:00

fix(curve settings): add initial size hint

This commit is contained in:
2025-06-20 14:17:16 +02:00
committed by Klaus Wakonig
parent b51de1a00e
commit a9708f6d8f

View File

@ -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)