Commit 77097dee authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Rename dataForLine -> highlightingForLine

parent 2286c850
Pipeline #226773 passed with stage
in 5 minutes and 31 seconds
......@@ -141,7 +141,7 @@ void DiffEditor::paintEvent(QPaintEvent *e)
QRectF r = blockBoundingRect(block).translated(offset);
auto layout = block.layout();
auto hl = dataForLine(block.blockNumber());
auto hl = highlightingForLine(block.blockNumber());
if (hl && layout) {
const auto changes = hl->changes;
for (auto c : changes) {
......@@ -206,7 +206,7 @@ void DiffEditor::paintEvent(QPaintEvent *e)
}
}
const LineHighlight *DiffEditor::dataForLine(int line)
const LineHighlight *DiffEditor::highlightingForLine(int line)
{
auto it = std::find_if(m_data.cbegin(), m_data.cend(), [line](LineHighlight hl) {
return hl.line == line;
......
......@@ -49,7 +49,7 @@ protected:
void contextMenuEvent(QContextMenuEvent *e) override;
private:
const LineHighlight *dataForLine(int line);
const LineHighlight *highlightingForLine(int line);
void updateLineNumberArea(const QRect &rect, int dy);
void updateLineNumAreaGeometry();
void updateLineNumberAreaWidth(int);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment