未验证 提交 7d8d7a89 编写于 作者: J Jim 提交者: GitHub

Merge pull request #2218 from cg2121/source-icon-fix

UI: Fix source icons being shifted to the right
......@@ -317,7 +317,7 @@ void SourceTreeItem::EnterEditMode()
editor->setStyleSheet("background: none");
editor->selectAll();
editor->installEventFilter(this);
boxLayout->insertWidget(1, editor);
boxLayout->insertWidget(2, editor);
setFocusProxy(editor);
}
......@@ -336,7 +336,7 @@ void SourceTreeItem::ExitEditMode(bool save)
delete editor;
editor = nullptr;
setFocusPolicy(Qt::NoFocus);
boxLayout->insertWidget(1, label);
boxLayout->insertWidget(2, label);
/* ----------------------------------------- */
/* check for empty string */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册