fix(studio): Qt6 compat + Ctrl+C signal handler
- flash_console: setTextFormat(Qt.TextFormat.RichText) — int overload removed in Qt6 - installer_widget: same fix + add Qt to QtCore import - project_editor/installer_widget: Session.has() → Session.can() - app.py: signal.signal(SIGINT, SIG_DFL) so Ctrl+C kills the process from terminal AR_electronics — AR-Autopilot Project
This commit is contained in:
@@ -31,7 +31,7 @@ import sys
|
||||
from pathlib import Path
|
||||
from typing import Optional
|
||||
|
||||
from PySide6.QtCore import QObject, QThread, Signal
|
||||
from PySide6.QtCore import QObject, Qt, QThread, Signal
|
||||
from PySide6.QtWidgets import (
|
||||
QComboBox,
|
||||
QDialog,
|
||||
@@ -148,7 +148,7 @@ class FlashConsoleWidget(QWidget):
|
||||
f"Logged in as <b>{self._session.user.display_name}</b> "
|
||||
f"({self._session.role.value})."
|
||||
)
|
||||
header.setTextFormat(0x1) # PlainText would lose <br/>; RichText = 1
|
||||
header.setTextFormat(Qt.TextFormat.RichText)
|
||||
header.setWordWrap(True)
|
||||
outer.addWidget(header)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user