MCPcopy Create free account
hub / github.com/Kitware/CMake / CodeEditor

Method CodeEditor

Tests/QtAutogen/Complex/codeeditor.cpp:48–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46#include <QWidget>
47
48CodeEditor::CodeEditor(QWidget* parent)
49 : QPlainTextEdit(parent)
50{
51 lineNumberArea = new LineNumberArea(this);
52
53 connect(this, SIGNAL(blockCountChanged(int)), this,
54 SLOT(updateLineNumberAreaWidth(int)));
55 connect(this, SIGNAL(updateRequest(QRect, int)), this,
56 SLOT(updateLineNumberArea(QRect, int)));
57 connect(this, SIGNAL(cursorPositionChanged()), this,
58 SLOT(highlightCurrentLine()));
59
60 updateLineNumberAreaWidth(0);
61 highlightCurrentLine();
62}
63
64int CodeEditor::lineNumberAreaWidth()
65{

Callers

nothing calls this directly

Calls 1

connectFunction · 0.85

Tested by

no test coverage detected