MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / BasicEditor

Method BasicEditor

gui/qt/basiccodeviewerwindow.cpp:15–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13#include <QtWidgets/QMessageBox>
14
15BasicEditor::BasicEditor(QWidget *parent) : QPlainTextEdit(parent)
16{
17 highlighter = new BasicHighlighter(document());
18 lineNumberArea = new LineNumberArea(this);
19
20 QFont font = QFont(QStringLiteral("TICELarge"), 11);
21 lineNumberArea->setFont(font);
22
23 connect(this, &QPlainTextEdit::blockCountChanged, this, &BasicEditor::updateLineNumberAreaWidth);
24 connect(this, &QPlainTextEdit::updateRequest, this, &BasicEditor::updateLineNumberArea);
25
26 updateLineNumberAreaWidth(0);
27}
28
29void BasicEditor::updateDarkMode()
30{

Callers

nothing calls this directly

Calls 1

setFontMethod · 0.45

Tested by

no test coverage detected