making the window close and stop audio properly
This commit is contained in:
parent
9a180f7df0
commit
9f9026105f
3 changed files with 20 additions and 14 deletions
|
@ -13,12 +13,19 @@ Window {
|
|||
height: maximumHeight
|
||||
width: maximumWidth
|
||||
screen: presentationScreen
|
||||
opacity: 1.0
|
||||
transientParent: null
|
||||
/* flags: Qt.X11BypassWindowManagerHint */
|
||||
onClosing: close()
|
||||
onClosing: {
|
||||
presentationSlide.stopVideo();
|
||||
SlideObject.pause();
|
||||
presenting = false;
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
presentationWindow.showFullScreen();
|
||||
/* presentationWindow.showFullScreen(); */
|
||||
print(screen.name);
|
||||
showMinimized();
|
||||
}
|
||||
|
||||
Presenter.Slide {
|
||||
|
@ -52,10 +59,4 @@ Window {
|
|||
function pauseVideo() {
|
||||
presentationSlide.pauseVideo();
|
||||
}
|
||||
|
||||
function close() {
|
||||
presentationSlide.stopVideo();
|
||||
SlideObject.pause();
|
||||
presenting = false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue