comparison view/PaneStack.cpp @ 373:0895517bb2d1 1.2-stable

* merge from trunk (1.2 ended up being tracked from trunk, but we may want this branch for fixes later)
author Chris Cannam
date Wed, 27 Feb 2008 10:32:45 +0000
parents 1f67b110c1a3
children 92b89764eb3b
comparison
equal deleted inserted replaced
337:813170c57b13 373:0895517bb2d1
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)