Mercurial > hg > svgui
comparison view/PaneStack.cpp @ 374:64e84e5efb76 spectrogram-cache-rejig
* Merge from trunk
author | Chris Cannam |
---|---|
date | Wed, 27 Feb 2008 11:59:42 +0000 |
parents | 1f67b110c1a3 |
children | 92b89764eb3b |
comparison
equal
deleted
inserted
replaced
332:6440e280122e | 374:64e84e5efb76 |
---|---|
493 | 493 |
494 #ifdef DEBUG_PANE_STACK | 494 #ifdef DEBUG_PANE_STACK |
495 std::cerr << "PaneStack::sizePropertyStacks: max min width " << maxMinWidth << std::endl; | 495 std::cerr << "PaneStack::sizePropertyStacks: max min width " << maxMinWidth << std::endl; |
496 #endif | 496 #endif |
497 | 497 |
498 //#ifdef Q_WS_MAC | |
499 // This is necessary to compensate for cb->setMinimumSize(10, 10) | |
500 // in PropertyBox in the Mac version (to avoid a mysterious crash) | |
501 // ... no longer necessary with qt4.2 | |
502 // int setWidth = maxMinWidth * 3 / 2; | |
503 //#else | |
504 int setWidth = maxMinWidth; | 498 int setWidth = maxMinWidth; |
505 //#endif | |
506 | 499 |
507 m_propertyStackStack->setMaximumWidth(setWidth + 10); | 500 m_propertyStackStack->setMaximumWidth(setWidth + 10); |
508 | 501 |
509 for (size_t i = 0; i < m_panes.size(); ++i) { | 502 for (size_t i = 0; i < m_panes.size(); ++i) { |
510 if (!m_panes[i].propertyStack) continue; | 503 if (!m_panes[i].propertyStack) continue; |
511 m_panes[i].propertyStack->setMinimumWidth(setWidth); | 504 m_panes[i].propertyStack->setMinimumWidth(setWidth); |
512 } | 505 } |
513 | 506 |
507 emit propertyStacksResized(setWidth); | |
514 emit propertyStacksResized(); | 508 emit propertyStacksResized(); |
515 } | 509 } |
516 | 510 |
517 void | 511 void |
518 PaneStack::paneDropAccepted(QStringList uriList) | 512 PaneStack::paneDropAccepted(QStringList uriList) |