From da28d40030fa2fa7e36aba6ac5d1a2500ff1641c Mon Sep 17 00:00:00 2001 From: Nikolai Kosjar Date: Thu, 14 Feb 2019 12:31:39 +0100 Subject: [PATCH] TextEditor: Add more space before TextMarks' tooltip actions Change-Id: I6331d60026da865f29c5ed2455f2399414f99900 Reviewed-by: Eike Ziller --- src/plugins/texteditor/textmark.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/texteditor/textmark.cpp b/src/plugins/texteditor/textmark.cpp index 22ddbbec03d..49ce797f883 100644 --- a/src/plugins/texteditor/textmark.cpp +++ b/src/plugins/texteditor/textmark.cpp @@ -291,6 +291,9 @@ void TextMark::addToToolTipLayout(QGridLayout *target) const // Right column: action icons/button if (!m_actions.isEmpty()) { auto actionsLayout = new QHBoxLayout; + QMargins margins = actionsLayout->contentsMargins(); + margins.setLeft(margins.left() + 5); + actionsLayout->setContentsMargins(margins); for (QAction *action : m_actions) { QTC_ASSERT(!action->icon().isNull(), continue); auto button = new QToolButton;