Fixes for code block background painting, and add line numbers to Code Editor dialog
This commit is contained in:
parent
dc1046632c
commit
9db4cda8cc
4 changed files with 192 additions and 26 deletions
|
|
@ -70,7 +70,9 @@ def _stub_code_block_editor_dialog(monkeypatch):
|
|||
from PySide6.QtWidgets import QDialog
|
||||
|
||||
class _TestCodeBlockEditorDialog:
|
||||
def __init__(self, code: str, language: str | None, parent=None):
|
||||
def __init__(
|
||||
self, code: str, language: str | None, parent=None, allow_delete=False
|
||||
):
|
||||
# Simulate what the real dialog would “start with”
|
||||
self._code = code
|
||||
self._language = language
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue