修正采集设置对话框输入面板被压缩重叠

对话框把输入面板最大高度限制为 320,低于各行所需的自然高度,Finger 视频与传感器配置两行重叠。改为只限制预览图高度,并新增布局测试;已在 Windows 上目视确认。
This commit is contained in:
ykcheungab
2026-10-19 09:42:41 +08:00
parent a0c13c1dc6
commit bc5dfc035d
2 changed files with 32 additions and 4 deletions
+21
View File
@@ -734,3 +734,24 @@ def test_a_stored_unavailable_codec_does_not_become_the_selection(make_window):
assert settings.codec.currentData() == "mp4v"
assert settings.recording_options().codec == "mp4v"
window.close()
def test_the_settings_dialog_does_not_squeeze_the_input_rows(make_window, qt_app):
"""The input panel keeps its natural height: no row may overlap the next one."""
window = make_window()
page = window.calibration_panel
dialog = page.settings
dialog.resize(720, 700)
dialog.show()
for _ in range(5):
qt_app.processEvents()
panel = window.finger_source_panel
assert panel.height() >= panel.minimumSizeHint().height()
video = panel.video_path.geometry()
config = panel.config_ref.geometry()
assert video.bottom() < config.top(), (video, config)
# The preview stays bounded, so the sections below remain reachable.
assert panel.preview.height() <= 200
dialog.close()
window.close()