Changeset View
Changeset View
Standalone View
Standalone View
src/render/katerenderer.cpp
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Line(s) | 886 | if (!(flags & SkipDrawFirstInvisibleLineUnderlined) && range->startsInvisibleBlock()) { | |||
---|---|---|---|---|---|
895 | paint.setRenderHints(backupRenderHints); | 895 | paint.setRenderHints(backupRenderHints); | ||
896 | } | 896 | } | ||
897 | 897 | | |||
898 | // show word wrap marker if desirable | 898 | // show word wrap marker if desirable | ||
899 | if ((!isPrinterFriendly()) && config()->wordWrapMarker() && QFontInfo(config()->font()).fixedPitch()) { | 899 | if ((!isPrinterFriendly()) && config()->wordWrapMarker() && QFontInfo(config()->font()).fixedPitch()) { | ||
900 | const QPainter::RenderHints backupRenderHints = paint.renderHints(); | 900 | const QPainter::RenderHints backupRenderHints = paint.renderHints(); | ||
901 | paint.setRenderHint(QPainter::Antialiasing, false); | 901 | paint.setRenderHint(QPainter::Antialiasing, false); | ||
902 | paint.setPen(config()->wordWrapMarkerColor()); | 902 | paint.setPen(config()->wordWrapMarkerColor()); | ||
903 | int _x = qreal(m_doc->config()->wordWrapAt()) * fm.width(QLatin1Char('x')) - xStart; | 903 | int _x = qreal(m_doc->config()->intVal("Word Wrap Column")) * fm.width(QLatin1Char('x')) - xStart; | ||
904 | paint.drawLine(_x, 0, _x, lineHeight()); | 904 | paint.drawLine(_x, 0, _x, lineHeight()); | ||
905 | paint.setRenderHints(backupRenderHints); | 905 | paint.setRenderHints(backupRenderHints); | ||
906 | } | 906 | } | ||
907 | } | 907 | } | ||
908 | 908 | | |||
909 | const QFont &KateRenderer::currentFont() const | 909 | const QFont &KateRenderer::currentFont() const | ||
910 | { | 910 | { | ||
911 | return config()->font(); | 911 | return config()->font(); | ||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |