diff view/PaneStack.cpp @ 179:6a0d54f3f21a

* Press X to toggle the property boxes
author Chris Cannam
date Tue, 14 Nov 2006 16:06:00 +0000
parents 33929e0c3c6b
children 29f01de27db4
line wrap: on
line diff
--- a/view/PaneStack.cpp	Mon Nov 13 14:48:57 2006 +0000
+++ b/view/PaneStack.cpp	Tue Nov 14 16:06:00 2006 +0000
@@ -126,6 +126,7 @@
 
     switch (style) {
 
+    case NoPropertyStacks:
     case SinglePropertyStackLayout:
         
         for (i = m_panes.begin(); i != m_panes.end(); ++i) {
@@ -133,7 +134,7 @@
             i->propertyStack->setParent(m_propertyStackStack);
             m_propertyStackStack->addWidget(i->propertyStack);
         }
-        m_propertyStackStack->show();
+        m_propertyStackStack->setVisible(style != NoPropertyStacks);
         break;
 
     case PropertyStackPerPaneLayout:
@@ -288,7 +289,7 @@
     while (i != m_panes.end()) {
 	if (i->pane == pane) {
 	    i->currentIndicator->setPixmap(selectedMap);
-            if (m_layoutStyle == SinglePropertyStackLayout) {
+            if (m_layoutStyle != PropertyStackPerPaneLayout) {
                 m_propertyStackStack->setCurrentWidget(i->propertyStack);
             }
 	    found = true;