MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / resizeEvent

Method resizeEvent

src/texteditor.cpp:277–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277void TextEditor::resizeEvent(QResizeEvent* e)
278{
279 QPlainTextEdit::resizeEvent(e);
280
281 QRect cr = contentsRect();
282 m_lineNumbers->setGeometry(
283 QRect(cr.left(), cr.top(), m_lineNumbers->areaWidth(), cr.height()));
284}
285
286void TextEditor::paintLineNumbers(QPaintEvent* e, const QColor& textColor)
287{

Callers

nothing calls this directly

Calls 1

areaWidthMethod · 0.80

Tested by

no test coverage detected