From 57a5e6be6d581710d7eeaadc91c3b5742fb81b53 Mon Sep 17 00:00:00 2001 From: Christian Kolset Date: Tue, 11 Aug 2026 10:40:12 -0600 Subject: Fix native-style Qt warning; add a few tooltips; trim Namespace hint text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Root cause of "QFont::setPointSize: Point size <= 0 (-1)" on some dropdowns: the app never sets an explicit widget style, so it defaults to native windowsvista, whose popup code calls setPointSize() on fonts resolved from our QSS's pixel-based font-size (pointSize() is -1 by design for px fonts). Tried app.setStyle("Fusion") first — silences it, but Fusion doesn't render buttons/dropdowns to match the QSS the way the native style does. Kept native style, filtered just that one message via qInstallMessageHandler instead — it's cosmetic Qt console noise (the rejected setPointSize call is a no-op, doesn't affect rendering), not a real bug. Also adds a handful of tooltips (Control Editor's Check Syntax/Cancel/ Create Control, device Configure dialog's Close, main toolbar's View/ Configure/RUN/LOG/Settings, a few Control Panel widgets) from an in-progress app-wide tooltip pass, paused partway through by request — remaining buttons are being done manually. Co-Authored-By: Claude Sonnet 5 --- ui/control_editor.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ui/control_editor.py') diff --git a/ui/control_editor.py b/ui/control_editor.py index d167517..624e4c1 100644 --- a/ui/control_editor.py +++ b/ui/control_editor.py @@ -274,6 +274,7 @@ class ControlEditorDialog(QDialog): self._script_status = QLabel("") self._script_status.setObjectName("traceSource") check_btn = QPushButton("Check Syntax") + check_btn.setToolTip("Compile the script above and report any syntax error, without running it") check_btn.clicked.connect(self._check_script) btn_row = QHBoxLayout() btn_row.addWidget(self._script_status, 1) @@ -287,8 +288,10 @@ class ControlEditorDialog(QDialog): div.setObjectName("devWindowDivider"); root.addWidget(div) btn_row = QHBoxLayout(); btn_row.addStretch() - cancel = QPushButton("Cancel"); cancel.clicked.connect(self.reject) + cancel = QPushButton("Cancel"); cancel.setToolTip("Discard changes and close") + cancel.clicked.connect(self.reject) ok = QPushButton("Create Control") + ok.setToolTip("Save this control widget to the Control Panel") ok.setObjectName("applyButton"); ok.setDefault(True) ok.clicked.connect(self._on_ok) btn_row.addWidget(cancel); btn_row.addWidget(ok) -- cgit v1.2.3