[qml] In the default (sample) slideshow, activate key shortcuts

- with V2 loading, the key shortcuts should be enabled when the
   slideshow itself is activated, not when it is loaded.
This commit is contained in:
Adriaan de Groot 2019-08-27 11:49:27 +02:00
parent 34cb777b0a
commit 0a9d0ddf68
2 changed files with 11 additions and 2 deletions

View File

@ -25,7 +25,7 @@ Presentation
id: presentation id: presentation
function nextSlide() { function nextSlide() {
console.log("Next slide"); console.log("QML Component (default slideshow) Next slide");
presentation.goToNextSlide(); presentation.goToNextSlide();
} }
@ -70,7 +70,13 @@ Presentation
function onActivate() { function onActivate() {
presentation.currentSlide = 0; presentation.currentSlide = 0;
advanceTimer.running = true presentation.activatedInCalamares = true;
advanceTimer.running = true;
console.log("QML Component (default slideshow) activated"); console.log("QML Component (default slideshow) activated");
} }
function onLeave() {
presentation.activatedInCalamares = true;
}
} }

View File

@ -8,6 +8,9 @@
* (this and the 'c' key make sense in a *presentation* * (this and the 'c' key make sense in a *presentation*
* slideshow, not in a passive slideshow like Calamares) * slideshow, not in a passive slideshow like Calamares)
* - remove quit key * - remove quit key
* Copyright 2019, Adriaan de Groot <groot@kde.org>
* - Support "V2" loading
* - Disable shortcuts until the content is visible in Calamares
* *
* SPDX-License-Identifier: LGPL-2.1 * SPDX-License-Identifier: LGPL-2.1
* License-Filename: LICENSES/LGPLv2.1-Presentation * License-Filename: LICENSES/LGPLv2.1-Presentation