Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
195:4a3bdde1ef13 | 196:22c99c8aa1e0 |
---|---|
55 | 55 |
56 if (total < m_upperLimit) return; | 56 if (total < m_upperLimit) return; |
57 | 57 |
58 size_t count = 0; | 58 size_t count = 0; |
59 QMenu *chunkMenu = new QMenu(); | 59 QMenu *chunkMenu = new QMenu(); |
60 chunkMenu->setTearOffEnabled(isTearOffEnabled()); | |
60 | 61 |
61 QString firstNameInChunk; | 62 QString firstNameInChunk; |
62 QChar firstInitialInChunk; | 63 QChar firstInitialInChunk; |
63 bool discriminateStartInitial = false; | 64 bool discriminateStartInitial = false; |
64 | 65 |
118 chunkMenu->setTitle(menuText); | 119 chunkMenu->setTitle(menuText); |
119 | 120 |
120 QMenu::addMenu(chunkMenu); | 121 QMenu::addMenu(chunkMenu); |
121 | 122 |
122 chunkMenu = new QMenu(); | 123 chunkMenu = new QMenu(); |
124 chunkMenu->setTearOffEnabled(isTearOffEnabled()); | |
123 | 125 |
124 count = 0; | 126 count = 0; |
125 } | 127 } |
126 } | 128 } |
127 | 129 |
242 QMenu * | 244 QMenu * |
243 SubdividingMenu::addMenu(const QString &name) | 245 SubdividingMenu::addMenu(const QString &name) |
244 { | 246 { |
245 if (!m_entriesSet) { | 247 if (!m_entriesSet) { |
246 QMenu *menu = new QMenu(name, this); | 248 QMenu *menu = new QMenu(name, this); |
249 menu->setTearOffEnabled(isTearOffEnabled()); | |
247 m_pendingEntries[name] = menu; | 250 m_pendingEntries[name] = menu; |
248 return menu; | 251 return menu; |
249 } | 252 } |
250 | 253 |
251 if (m_nameToChunkMenuMap.find(name) == m_nameToChunkMenuMap.end()) { | 254 if (m_nameToChunkMenuMap.find(name) == m_nameToChunkMenuMap.end()) { |