comparison view/PaneStack.cpp @ 363:6167a28d25fc sv1-v1.2pre3

* line up overview widget nicely with main pane (at least on first startup) * fix #1878396 renaming layer seems to have no visible effect * comment out some debug output
author Chris Cannam
date Wed, 06 Feb 2008 17:40:53 +0000
parents 1f67b110c1a3
children 92b89764eb3b
comparison
equal deleted inserted replaced
362:a9dfa2d6d5ac 363:6167a28d25fc
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)