ui: Update visible depth graph when changing depth level (issue #484)
This commit is contained in:
@@ -125,6 +125,7 @@ void QtGraphView::initView()
|
||||
m_trailDepthSlider->setMaximum(26);
|
||||
m_trailDepthSlider->setValue(5);
|
||||
connect(m_trailDepthSlider, &QSlider::valueChanged, this, &QtGraphView::trailDepthChanged);
|
||||
connect(m_trailDepthSlider, &QSlider::sliderReleased, this, &QtGraphView::trailDepthUpdated);
|
||||
|
||||
m_collapseButton->setGeometry(0, 0, 26, 20);
|
||||
m_backwardTrailButton->setGeometry(0, 22, 26, 26);
|
||||
@@ -631,6 +632,14 @@ void QtGraphView::trailDepthChanged(int)
|
||||
}
|
||||
}
|
||||
|
||||
void QtGraphView::trailDepthUpdated()
|
||||
{
|
||||
if (m_oldGraph->getTrailMode() != Graph::TRAIL_NONE)
|
||||
{
|
||||
activateTrail(m_oldGraph->hasTrailOrigin());
|
||||
}
|
||||
}
|
||||
|
||||
void QtGraphView::clickedCollapse()
|
||||
{
|
||||
dynamic_cast<QStackedLayout*>(m_trailWidget->layout())->setCurrentIndex(0);
|
||||
|
||||
Reference in New Issue
Block a user