forked from qt-creator/qt-creator
TextEditor: Add more space before TextMarks' tooltip actions
Change-Id: I6331d60026da865f29c5ed2455f2399414f99900 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user