comparison view/PaneStack.cpp @ 585:f4960f8ce798 debug-output

Convert many cerrs to DEBUGs
author Chris Cannam
date Mon, 16 May 2011 17:19:25 +0100
parents 566787389e59
children 4806715f7a19
comparison
equal deleted inserted replaced
584:1fe7951a61e8 585:f4960f8ce798
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);