MCPcopy Create free account
hub / github.com/KDE/kdiff3 / getVisibleTextAreaWidth

Method getVisibleTextAreaWidth

src/difftextwindow.cpp:1435–1441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1433}
1434
1435qint32 DiffTextWindow::getVisibleTextAreaWidth() const
1436{
1437 //TODO: Check after line number area is converted to a QWidget.
1438 QFontMetrics fm = fontMetrics();
1439
1440 return width() - d->leftInfoWidth() * fm.horizontalAdvance('0');
1441}
1442
1443QString DiffTextWindow::getSelection() const
1444{

Callers 1

setHScrollBarRangeMethod · 0.45

Calls 1

leftInfoWidthMethod · 0.80

Tested by

no test coverage detected