ui: usability fixes

* reduced mouse drag sensibility when clicking on graph nodes
* also edit search element when cursor in front and pressing DELETE
* scroll to up to minimized snippet after minimizing when scrolled down far
This commit is contained in:
Eberhard Graether
2019-06-28 12:43:31 +02:00
parent 841a87469b
commit 5cc39824e0
7 changed files with 35 additions and 43 deletions
@@ -295,7 +295,13 @@ void QtCodeFileList::setFileMinimized(const FilePath path)
}
else
{
getFile(path)->setMinimized();
QtCodeFile* file = getFile(path);
file->setMinimized();
if (m_firstSnippetTitleBar->isVisible())
{
ensureWidgetVisibleAnimated(m_filesArea, file->getTitleBar(), QRect(), false, SCROLL_TOP);
}
}
}