diff options
Diffstat (limited to 'videoviewer.cpp')
-rw-r--r-- | videoviewer.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/videoviewer.cpp b/videoviewer.cpp index dbc6421..8c7c233 100644 --- a/videoviewer.cpp +++ b/videoviewer.cpp @@ -46,7 +46,9 @@ void VideoViewer::keyPressEvent(QKeyEvent *e){ player()->stop(); setHidden(true); }else if(keyNum == Qt::Key_F){ - setFullScreen(isFullScreen() ? false : true); + bool fs = isFullScreen(); + mLastFullScreen = !fs; + setFullScreen(mLastFullScreen); }else if(keyNum == Qt::Key_Right){ mPlayer->setPosition(mPlayer->position() + 5000); }else if(keyNum == Qt::Key_Left){ @@ -98,7 +100,6 @@ void VideoViewer::keyPressEvent(QKeyEvent *e){ void VideoViewer::closeEvent(QCloseEvent *e){ mPlayer->stop(); writeSettings(); - SmGlobals::instance()->removeGlobalWidget(this); - deleteLater(); - e->accept(); + hide(); + e->ignore(); } |