aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@qt.io>2019-02-14 12:31:39 +0100
committerNikolai Kosjar <nikolai.kosjar@qt.io>2019-02-15 14:15:56 +0000
commitda28d40030fa2fa7e36aba6ac5d1a2500ff1641c (patch)
tree7f713ab31b607148f772ce73de56bcf39bbfe387 /src
parent2bebfe9985e1da4a6227e82ef2b596b26ec964ea (diff)
TextEditor: Add more space before TextMarks' tooltip actions
Change-Id: I6331d60026da865f29c5ed2455f2399414f99900 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/texteditor/textmark.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/texteditor/textmark.cpp b/src/plugins/texteditor/textmark.cpp
index 22ddbbec03..49ce797f88 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;