diff --git a/mainwindow.cpp b/mainwindow.cpp index 77219d5..b299824 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -153,7 +153,6 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) viewMenu->addAction(tr("Zoom Out"), m_imageGL, SLOT(zoomOut()), QKeySequence::ZoomOut); viewMenu->addAction(tr("Best Fit"), m_imageGL, SLOT(bestFit()), QKeySequence("Ctrl+1")); viewMenu->addAction(tr("100%"), m_imageGL, SLOT(oneToOne())); - viewMenu->addAction(tr("Fullscreen"), this, SLOT(toggleFullScreen()), Qt::CTRL + Qt::Key_F11); QAction *thumbnailsAction = viewMenu->addAction(tr("Thumbnails"), [this](bool checked){ if(SettingsDialog::loadThumbsizes())m_ringList->clearThumbnails(); m_imageGL->imageWidget()->allocateThumbnails(m_ringList->imageNames()); @@ -584,20 +583,6 @@ void MainWindow::deleteMarked() m_database->clearMarkedFiles(); } -void MainWindow::toggleFullScreen() -{ - if(isFullScreen()) - { - showNormal(); - if(_maximized)showMaximized(); - } - else - { - _maximized = isMaximized(); - showFullScreen(); - } -} - void MainWindow::liveMode(bool active) { m_ringList->setLiveMode(active); diff --git a/mainwindow.h b/mainwindow.h index c5f6c5c..d4ac1cc 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -60,7 +60,6 @@ protected slots: void copyMarked(); void moveMarked(); void deleteMarked(); - void toggleFullScreen(); void liveMode(bool active); void imageStats(bool imageStats); void peakFinder(bool findPeaks);