Mercurial > hg > svgui
diff view/PaneStack.cpp @ 1462:6bd413aff85c
Fix incorrect visibility of alignment view when not requested; fix current indicator size when x-button is disabled
author | Chris Cannam |
---|---|
date | Mon, 20 May 2019 15:04:32 +0100 |
parents | 69b7fdd6394f |
children | 0f1601d870db |
line wrap: on
line diff
--- a/view/PaneStack.cpp Mon May 20 15:04:07 2019 +0100 +++ b/view/PaneStack.cpp Mon May 20 15:04:32 2019 +0100 @@ -132,7 +132,7 @@ ClickableLabel *currentIndicator = new ClickableLabel(frame); connect(currentIndicator, SIGNAL(clicked()), this, SLOT(indicatorClicked())); layout->addWidget(currentIndicator, 2, 0); - layout->setRowStretch(1, 20); + layout->setRowStretch(2, 20); currentIndicator->setMinimumWidth(16); currentIndicator->setMinimumHeight(16); currentIndicator->setScaledContents(true); @@ -223,6 +223,7 @@ PaneStack::relinkAlignmentViews() { if (m_panes.empty()) return; + if (!m_showAlignmentViews) return; m_panes[0].alignmentView->hide(); for (int i = 1; in_range_for(m_panes, i); ++i) { m_panes[i].alignmentView->setViewAbove(m_panes[i-1].pane);