comparison view/PaneStack.cpp @ 586:1ae54a29e59e

Merge from debug-output branch
author Chris Cannam
date Tue, 14 Jun 2011 14:48:29 +0100
parents f4960f8ce798
children 4806715f7a19
comparison
equal deleted inserted replaced
583:4c484636d5ec 586:1ae54a29e59e
493 if (m_propertyStackMinWidth > 0) maxMinWidth = m_propertyStackMinWidth; 493 if (m_propertyStackMinWidth > 0) maxMinWidth = m_propertyStackMinWidth;
494 494
495 for (size_t i = 0; i < m_panes.size(); ++i) { 495 for (size_t i = 0; i < m_panes.size(); ++i) {
496 if (!m_panes[i].propertyStack) continue; 496 if (!m_panes[i].propertyStack) continue;
497 #ifdef DEBUG_PANE_STACK 497 #ifdef DEBUG_PANE_STACK
498 std::cerr << "PaneStack::sizePropertyStacks: " << i << ": min " 498 DEBUG << "PaneStack::sizePropertyStacks: " << i << ": min "
499 << m_panes[i].propertyStack->minimumSizeHint().width() << ", hint " 499 << m_panes[i].propertyStack->minimumSizeHint().width() << ", hint "
500 << m_panes[i].propertyStack->sizeHint().width() << ", current " 500 << m_panes[i].propertyStack->sizeHint().width() << ", current "
501 << m_panes[i].propertyStack->width() << std::endl; 501 << m_panes[i].propertyStack->width() << endl;
502 #endif 502 #endif
503 503
504 if (m_panes[i].propertyStack->sizeHint().width() > maxMinWidth) { 504 if (m_panes[i].propertyStack->sizeHint().width() > maxMinWidth) {
505 maxMinWidth = m_panes[i].propertyStack->sizeHint().width(); 505 maxMinWidth = m_panes[i].propertyStack->sizeHint().width();
506 } 506 }
507 } 507 }
508 508
509 #ifdef DEBUG_PANE_STACK 509 #ifdef DEBUG_PANE_STACK
510 std::cerr << "PaneStack::sizePropertyStacks: max min width " << maxMinWidth << std::endl; 510 DEBUG << "PaneStack::sizePropertyStacks: max min width " << maxMinWidth << endl;
511 #endif 511 #endif
512 512
513 int setWidth = maxMinWidth; 513 int setWidth = maxMinWidth;
514 514
515 m_propertyStackStack->setMaximumWidth(setWidth + 10); 515 m_propertyStackStack->setMaximumWidth(setWidth + 10);