diff view/PaneStack.cpp @ 247:0e9f59f991aa

...
author Chris Cannam
date Mon, 30 Apr 2007 09:07:08 +0000
parents d9a01a817e8b
children 1a49bd0d8375
line wrap: on
line diff
--- a/view/PaneStack.cpp	Fri Apr 27 15:42:23 2007 +0000
+++ b/view/PaneStack.cpp	Mon Apr 30 09:07:08 2007 +0000
@@ -31,6 +31,8 @@
 
 #include <iostream>
 
+//#define DEBUG_PANE_STACK 1
+
 PaneStack::PaneStack(QWidget *parent, ViewManager *viewManager) :
     QFrame(parent),
     m_currentPane(0),
@@ -424,23 +426,26 @@
 
     for (size_t i = 0; i < m_panes.size(); ++i) {
 	if (!m_panes[i].propertyStack) continue;
+#ifdef DEBUG_PANE_STACK
 	std::cerr << "PaneStack::sizePropertyStacks: " << i << ": min " 
 		  << m_panes[i].propertyStack->minimumSizeHint().width() << ", hint "
                   << m_panes[i].propertyStack->sizeHint().width() << ", current "
 		  << m_panes[i].propertyStack->width() << std::endl;
+#endif
 
 	if (m_panes[i].propertyStack->sizeHint().width() > maxMinWidth) {
 	    maxMinWidth = m_panes[i].propertyStack->sizeHint().width();
 	}
     }
 
-//    std::cerr << "PaneStack::sizePropertyStacks: max min width " << maxMinWidth << std::endl;
+#ifdef DEBUG_PANE_STACK
+    std::cerr << "PaneStack::sizePropertyStacks: max min width " << maxMinWidth << std::endl;
+#endif
 
 //#ifdef Q_WS_MAC
     // This is necessary to compensate for cb->setMinimumSize(10, 10)
     // in PropertyBox in the Mac version (to avoid a mysterious crash)
-
-    //!!! is this still necessary with qt4.2?
+    // ... no longer necessary with qt4.2
 //    int setWidth = maxMinWidth * 3 / 2;
 //#else
     int setWidth = maxMinWidth;