comparison 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
comparison
equal deleted inserted replaced
1461:e561f0a8d75b 1462:6bd413aff85c
130 connect(xButton, SIGNAL(clicked()), this, SLOT(paneDeleteButtonClicked())); 130 connect(xButton, SIGNAL(clicked()), this, SLOT(paneDeleteButtonClicked()));
131 131
132 ClickableLabel *currentIndicator = new ClickableLabel(frame); 132 ClickableLabel *currentIndicator = new ClickableLabel(frame);
133 connect(currentIndicator, SIGNAL(clicked()), this, SLOT(indicatorClicked())); 133 connect(currentIndicator, SIGNAL(clicked()), this, SLOT(indicatorClicked()));
134 layout->addWidget(currentIndicator, 2, 0); 134 layout->addWidget(currentIndicator, 2, 0);
135 layout->setRowStretch(1, 20); 135 layout->setRowStretch(2, 20);
136 currentIndicator->setMinimumWidth(16); 136 currentIndicator->setMinimumWidth(16);
137 currentIndicator->setMinimumHeight(16); 137 currentIndicator->setMinimumHeight(16);
138 currentIndicator->setScaledContents(true); 138 currentIndicator->setScaledContents(true);
139 currentIndicator->setVisible(m_showAccessories); 139 currentIndicator->setVisible(m_showAccessories);
140 140
221 221
222 void 222 void
223 PaneStack::relinkAlignmentViews() 223 PaneStack::relinkAlignmentViews()
224 { 224 {
225 if (m_panes.empty()) return; 225 if (m_panes.empty()) return;
226 if (!m_showAlignmentViews) return;
226 m_panes[0].alignmentView->hide(); 227 m_panes[0].alignmentView->hide();
227 for (int i = 1; in_range_for(m_panes, i); ++i) { 228 for (int i = 1; in_range_for(m_panes, i); ++i) {
228 m_panes[i].alignmentView->setViewAbove(m_panes[i-1].pane); 229 m_panes[i].alignmentView->setViewAbove(m_panes[i-1].pane);
229 m_panes[i].alignmentView->setViewBelow(m_panes[i].pane); 230 m_panes[i].alignmentView->setViewBelow(m_panes[i].pane);
230 m_panes[i].alignmentView->setVisible(true); 231 m_panes[i].alignmentView->setVisible(true);