comparison view/PaneStack.cpp @ 238:966639cc7c11

* looks like this ugly OS/X hack is no longer necessary with more recent Qt
author Chris Cannam
date Thu, 19 Apr 2007 15:19:38 +0000
parents efadb9d2b2c6
children 92dc881926da
comparison
equal deleted inserted replaced
237:d45d78a94f2e 238:966639cc7c11
433 } 433 }
434 } 434 }
435 435
436 // std::cerr << "PaneStack::sizePropertyStacks: max min width " << maxMinWidth << std::endl; 436 // std::cerr << "PaneStack::sizePropertyStacks: max min width " << maxMinWidth << std::endl;
437 437
438 #ifdef Q_WS_MAC 438 //#ifdef Q_WS_MAC
439 // This is necessary to compensate for cb->setMinimumSize(10, 10) 439 // This is necessary to compensate for cb->setMinimumSize(10, 10)
440 // in PropertyBox in the Mac version (to avoid a mysterious crash) 440 // in PropertyBox in the Mac version (to avoid a mysterious crash)
441 441
442 //!!! is this still necessary with qt4.2? 442 //!!! is this still necessary with qt4.2?
443 int setWidth = maxMinWidth * 3 / 2; 443 // int setWidth = maxMinWidth * 3 / 2;
444 #else 444 //#else
445 int setWidth = maxMinWidth; 445 int setWidth = maxMinWidth;
446 #endif 446 //#endif
447 447
448 m_propertyStackStack->setMaximumWidth(setWidth + 10); 448 m_propertyStackStack->setMaximumWidth(setWidth + 10);
449 449
450 for (size_t i = 0; i < m_panes.size(); ++i) { 450 for (size_t i = 0; i < m_panes.size(); ++i) {
451 if (!m_panes[i].propertyStack) continue; 451 if (!m_panes[i].propertyStack) continue;