diff widgets/SubdividingMenu.cpp @ 196:22c99c8aa1e0

* Add separate colour mapping unit; use it in spectrogram (colour 3d plot to follow) * Add another colour scheme resembling that of a noted commercial application
author Chris Cannam
date Wed, 31 Jan 2007 12:13:47 +0000
parents 42118892f428
children 1fe7951a61e8
line wrap: on
line diff
--- a/widgets/SubdividingMenu.cpp	Mon Jan 29 18:11:20 2007 +0000
+++ b/widgets/SubdividingMenu.cpp	Wed Jan 31 12:13:47 2007 +0000
@@ -57,6 +57,7 @@
 
     size_t count = 0;
     QMenu *chunkMenu = new QMenu();
+    chunkMenu->setTearOffEnabled(isTearOffEnabled());
 
     QString firstNameInChunk;
     QChar firstInitialInChunk;
@@ -120,6 +121,7 @@
             QMenu::addMenu(chunkMenu);
             
             chunkMenu = new QMenu();
+            chunkMenu->setTearOffEnabled(isTearOffEnabled());
             
             count = 0;
         }
@@ -244,6 +246,7 @@
 {
     if (!m_entriesSet) {
         QMenu *menu = new QMenu(name, this);
+        menu->setTearOffEnabled(isTearOffEnabled());
         m_pendingEntries[name] = menu;
         return menu;
     }