comparison main/MainWindow.cpp @ 588:e8881f405b8f

Full-screen fixes
author Chris Cannam
date Fri, 19 Jul 2013 15:45:40 +0100
parents 0b094b0fdcc4
children e37154e52d89
comparison
equal deleted inserted replaced
587:41684d0b0663 588:e8881f405b8f
373 } 373 }
374 374
375 void 375 void
376 MainWindow::goFullScreen() 376 MainWindow::goFullScreen()
377 { 377 {
378 if (m_viewManager->getZoomWheelsEnabled()) {
379 // The wheels seem to end up in the wrong place in full-screen mode
380 toggleZoomWheels();
381 }
382
378 QWidget *ps = m_mainScroll->takeWidget(); 383 QWidget *ps = m_mainScroll->takeWidget();
379 ps->setParent(0); 384 ps->setParent(0);
380 385
381 QShortcut *sc; 386 QShortcut *sc;
382 387
407 foreach (QObject *o, cl) { 412 foreach (QObject *o, cl) {
408 QShortcut *sc = qobject_cast<QShortcut *>(o); 413 QShortcut *sc = qobject_cast<QShortcut *>(o);
409 if (sc) delete sc; 414 if (sc) delete sc;
410 } 415 }
411 416
417 m_paneStack->showNormal();
412 m_mainScroll->setWidget(m_paneStack); 418 m_mainScroll->setWidget(m_paneStack);
413 } 419 }
414 420
415 void 421 void
416 MainWindow::setupFileMenu() 422 MainWindow::setupFileMenu()