Mercurial > hg > svgui
comparison view/PaneStack.cpp @ 587:4806715f7a19
Seems to be a bad idea to use plain DEBUG symbol on OS/X (system wants it)
author | Chris Cannam |
---|---|
date | Tue, 14 Jun 2011 15:27:05 +0100 |
parents | f4960f8ce798 |
children | a7a89ebe4b02 |
comparison
equal
deleted
inserted
replaced
586:1ae54a29e59e | 587:4806715f7a19 |
---|---|
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 DEBUG << "PaneStack::sizePropertyStacks: " << i << ": min " | 498 SVDEBUG << "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() << endl; | 501 << m_panes[i].propertyStack->width() << endl; |
502 #endif | 502 #endif |
503 | 503 |
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 DEBUG << "PaneStack::sizePropertyStacks: max min width " << maxMinWidth << endl; | 510 SVDEBUG << "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); |