From a9708f6d8f15c42b142488da1e392a8f3179932a Mon Sep 17 00:00:00 2001 From: wakonig_k Date: Fri, 20 Jun 2025 14:17:16 +0200 Subject: [PATCH] fix(curve settings): add initial size hint --- .../waveform/settings/curve_settings/curve_setting.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bec_widgets/widgets/plots/waveform/settings/curve_settings/curve_setting.py b/bec_widgets/widgets/plots/waveform/settings/curve_settings/curve_setting.py index 0abbe7e6..351fc0c1 100644 --- a/bec_widgets/widgets/plots/waveform/settings/curve_settings/curve_setting.py +++ b/bec_widgets/widgets/plots/waveform/settings/curve_settings/curve_setting.py @@ -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)