comparison widgets/PaneStack.cpp @ 79:19bf27e4fb29

* Replace crash with warning when a transform could not be automatically re-run * More sensible default paths for Vamp plugin lookup (at least on Linux and OS/X) * A start to making the y coords for time value layers etc align * Set sensible y coords for text labels in time instant and value layers
author Chris Cannam
date Thu, 13 Apr 2006 18:29:10 +0000
parents 705f05ab42e3
children 803830f186ef
comparison
equal deleted inserted replaced
78:967193b6c7aa 79:19bf27e4fb29
329 { 329 {
330 int maxMinWidth = 0; 330 int maxMinWidth = 0;
331 331
332 for (size_t i = 0; i < m_panes.size(); ++i) { 332 for (size_t i = 0; i < m_panes.size(); ++i) {
333 if (!m_panes[i].propertyStack) continue; 333 if (!m_panes[i].propertyStack) continue;
334 std::cerr << "PaneStack::sizePropertyStacks: " << i << ": min " 334 // std::cerr << "PaneStack::sizePropertyStacks: " << i << ": min "
335 << m_panes[i].propertyStack->minimumSizeHint().width() << ", current " 335 // << m_panes[i].propertyStack->minimumSizeHint().width() << ", current "
336 << m_panes[i].propertyStack->width() << std::endl; 336 // << m_panes[i].propertyStack->width() << std::endl;
337 337
338 if (m_panes[i].propertyStack->minimumSizeHint().width() > maxMinWidth) { 338 if (m_panes[i].propertyStack->minimumSizeHint().width() > maxMinWidth) {
339 maxMinWidth = m_panes[i].propertyStack->minimumSizeHint().width(); 339 maxMinWidth = m_panes[i].propertyStack->minimumSizeHint().width();
340 } 340 }
341 } 341 }
342 342
343 std::cerr << "PaneStack::sizePropertyStacks: max min width " << maxMinWidth << std::endl; 343 // std::cerr << "PaneStack::sizePropertyStacks: max min width " << maxMinWidth << std::endl;
344 344
345 #ifdef Q_WS_MAC 345 #ifdef Q_WS_MAC
346 // This is necessary to compensate for cb->setMinimumSize(10, 10) 346 // This is necessary to compensate for cb->setMinimumSize(10, 10)
347 // in PropertyBox in the Mac version (to avoid a mysterious crash) 347 // in PropertyBox in the Mac version (to avoid a mysterious crash)
348 int setWidth = maxMinWidth * 3 / 2; 348 int setWidth = maxMinWidth * 3 / 2;