Merge pull request #2218 from cg2121/source-icon-fix
UI: Fix source icons being shifted to the right
This commit is contained in:
commit
7d8d7a8983
@ -317,7 +317,7 @@ void SourceTreeItem::EnterEditMode()
|
|||||||
editor->setStyleSheet("background: none");
|
editor->setStyleSheet("background: none");
|
||||||
editor->selectAll();
|
editor->selectAll();
|
||||||
editor->installEventFilter(this);
|
editor->installEventFilter(this);
|
||||||
boxLayout->insertWidget(1, editor);
|
boxLayout->insertWidget(2, editor);
|
||||||
setFocusProxy(editor);
|
setFocusProxy(editor);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -336,7 +336,7 @@ void SourceTreeItem::ExitEditMode(bool save)
|
|||||||
delete editor;
|
delete editor;
|
||||||
editor = nullptr;
|
editor = nullptr;
|
||||||
setFocusPolicy(Qt::NoFocus);
|
setFocusPolicy(Qt::NoFocus);
|
||||||
boxLayout->insertWidget(1, label);
|
boxLayout->insertWidget(2, label);
|
||||||
|
|
||||||
/* ----------------------------------------- */
|
/* ----------------------------------------- */
|
||||||
/* check for empty string */
|
/* check for empty string */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user