Mercurial > hg > sonic-visualiser
diff main/MainWindow.cpp @ 104:efc8b5da414a
* Fix occasional misplacement of zoom wheels
* Disable tearoff in context menu (it always got activated when you just clicked
and released)
author | Chris Cannam |
---|---|
date | Mon, 26 Feb 2007 14:18:21 +0000 |
parents | 99d44871334b |
children | 0581d552481d |
line wrap: on
line diff
--- a/main/MainWindow.cpp Fri Feb 16 16:57:15 2007 +0000 +++ b/main/MainWindow.cpp Mon Feb 26 14:18:21 2007 +0000 @@ -339,7 +339,14 @@ { if (!m_mainMenusCreated) { m_rightButtonMenu = new QMenu(); - m_rightButtonMenu->setTearOffEnabled(true); + + // No -- we don't want tear-off enabled on the right-button + // menu. If it is enabled, then simply right-clicking and + // releasing will pop up the menu, activate the tear-off, and + // leave the torn-off menu window in front of the main window. + // That isn't desirable. I'm not sure it ever would be, in a + // context menu -- perhaps technically a Qt bug? +// m_rightButtonMenu->setTearOffEnabled(true); } if (m_rightButtonLayerMenu) {