mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-11-23 09:38:10 +01:00
fix(curve settings): add initial size hint
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user