Changeset View
Changeset View
Standalone View
Standalone View
src/render/katerenderer.cpp
Show First 20 Lines • Show All 891 Lines • ▼ Show 20 Line(s) | 886 | } else { | |||
---|---|---|---|---|---|
892 | } | 892 | } | ||
893 | } | 893 | } | ||
894 | 894 | | |||
895 | paint.restore(); | 895 | paint.restore(); | ||
896 | } | 896 | } | ||
897 | } | 897 | } | ||
898 | 898 | | |||
899 | // show word wrap marker if desirable | 899 | // show word wrap marker if desirable | ||
900 | if ((!isPrinterFriendly()) && config()->wordWrapMarker() && QFontInfo(config()->font()).fixedPitch()) { | 900 | if ((!isPrinterFriendly()) && config()->wordWrapMarker()) { | ||
901 | const QPainter::RenderHints backupRenderHints = paint.renderHints(); | 901 | const QPainter::RenderHints backupRenderHints = paint.renderHints(); | ||
902 | paint.setRenderHint(QPainter::Antialiasing, false); | 902 | paint.setRenderHint(QPainter::Antialiasing, false); | ||
903 | paint.setPen(config()->wordWrapMarkerColor()); | 903 | paint.setPen(config()->wordWrapMarkerColor()); | ||
904 | int _x = qreal(m_doc->config()->wordWrapAt()) * fm.width(QLatin1Char('x')) - xStart; | 904 | int _x = qreal(m_doc->config()->wordWrapAt()) * fm.width(QLatin1Char('x')) - xStart; | ||
905 | paint.drawLine(_x, 0, _x, lineHeight()); | 905 | paint.drawLine(_x, 0, _x, lineHeight()); | ||
906 | paint.setRenderHints(backupRenderHints); | 906 | paint.setRenderHints(backupRenderHints); | ||
907 | } | 907 | } | ||
908 | } | 908 | } | ||
▲ Show 20 Lines • Show All 318 Lines • Show Last 20 Lines |