From 03a95d3051899ca7fb2d48f44700744b94c3fe35 Mon Sep 17 00:00:00 2001 From: baldurk Date: Sun, 25 Feb 2018 12:28:08 +0000 Subject: [PATCH] Configure line wrapping on capture comments view --- qrenderdoc/Windows/CommentView.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qrenderdoc/Windows/CommentView.cpp b/qrenderdoc/Windows/CommentView.cpp index 690685283..072613fa8 100644 --- a/qrenderdoc/Windows/CommentView.cpp +++ b/qrenderdoc/Windows/CommentView.cpp @@ -40,6 +40,11 @@ CommentView::CommentView(ICaptureContext &ctx, QWidget *parent) STYLE_DEFAULT, QFontDatabase::systemFont(QFontDatabase::FixedFont).family().toUtf8().data()); m_commentsEditor->setTabWidth(4); + m_commentsEditor->setWrapMode(SC_WRAP_WORD); + m_commentsEditor->setWrapVisualFlags(SC_WRAPVISUALFLAG_MARGIN); + + m_commentsEditor->setMarginWidthN(0, sptr_t(30.0 * devicePixelRatioF())); + ConfigureSyntax(m_commentsEditor, SCLEX_NULL); QObject::connect(m_commentsEditor, &ScintillaEdit::modified, [this](int type, int, int, int,