ui & logic: fixes for release

* smaller indexing progress dialog with bar in the middle instead of golden ratio
* set default code snippet expand range to 3
* no minimum height for project file location element in project setup wizard
* move aggregation and inheritance edges to front when hovered or active
* push parent nodes of active nodes to back to make edges to the active child visible
* properly quit application when window is closed while confirm box is open
* properly quit application when window is closed while indexing
* only count top level nodes for count on bundle nodes
* give noLetterScore to index 0 in search index scoring

bug id = 121
This commit is contained in:
Eberhard Graether
2016-10-11 15:38:44 +02:00
parent 86f652d221
commit f6ae1afdb2
16 changed files with 93 additions and 44 deletions
@@ -258,6 +258,25 @@ Id QtGraphNode::getTokenId() const
void QtGraphNode::addSubNode(const std::shared_ptr<QtGraphNode>& node)
{
m_subNodes.push_back(node);
// push parent nodes to back so all edges going to the active subnode are visible
if (node->getIsActive())
{
QtGraphNode* parent = this;
while (parent)
{
parent->setZValue(-10.0f);
parent->m_rect->setZValue(-10.0f);
parent->m_text->setZValue(-9.0f);
if (parent->m_undefinedRect)
{
parent->m_undefinedRect->setZValue(-10.0f);
}
parent = parent->getParent();
}
}
}
void QtGraphNode::moved(const Vec2i& oldPosition)