comparison 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
comparison
equal deleted inserted replaced
103:99d44871334b 104:efc8b5da414a
337 void 337 void
338 MainWindow::setupMenus() 338 MainWindow::setupMenus()
339 { 339 {
340 if (!m_mainMenusCreated) { 340 if (!m_mainMenusCreated) {
341 m_rightButtonMenu = new QMenu(); 341 m_rightButtonMenu = new QMenu();
342 m_rightButtonMenu->setTearOffEnabled(true); 342
343 // No -- we don't want tear-off enabled on the right-button
344 // menu. If it is enabled, then simply right-clicking and
345 // releasing will pop up the menu, activate the tear-off, and
346 // leave the torn-off menu window in front of the main window.
347 // That isn't desirable. I'm not sure it ever would be, in a
348 // context menu -- perhaps technically a Qt bug?
349 // m_rightButtonMenu->setTearOffEnabled(true);
343 } 350 }
344 351
345 if (m_rightButtonLayerMenu) { 352 if (m_rightButtonLayerMenu) {
346 m_rightButtonLayerMenu->clear(); 353 m_rightButtonLayerMenu->clear();
347 } else { 354 } else {