TextEditor: Add more space before TextMarks' tooltip actions

Change-Id: I6331d60026da865f29c5ed2455f2399414f99900
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Nikolai Kosjar
2019-02-14 12:31:39 +01:00
parent 2bebfe9985
commit da28d40030

View File

@@ -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;