1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-25 20:22:39 +01:00

Add nice fadeout on sdkDisconnected

This commit is contained in:
Elias Steurer 2020-01-10 15:26:53 +01:00
parent dbe1135708
commit 63a2cca679
2 changed files with 6 additions and 1 deletions

View File

@ -28,7 +28,7 @@ int main(int argc, char* argv[])
ScreenPlaySDK sdk(argumentList.at(2), argumentList.at(3));
WidgetWindow spwmw(argumentList.at(1), argumentList.at(2), argumentList.at(3));
QObject::connect(&sdk, &ScreenPlaySDK::sdkDisconnected, &spwmw, &WidgetWindow::destroyThis);
QObject::connect(&sdk, &ScreenPlaySDK::sdkDisconnected, &spwmw, &WidgetWindow::qmlExit);
QObject::connect(&sdk, &ScreenPlaySDK::incommingMessage, &spwmw, &WidgetWindow::messageReceived);
return app.exec();

View File

@ -10,6 +10,11 @@ Item {
Connections {
target: Widget
onQmlExit: {
Widget.setWindowBlur(0)
animFadeOut.start()
}
onQmlSceneValueReceived: {
var obj2 = 'import QtQuick 2.14; Item {Component.onCompleted: loader.item.'
+ key + ' = ' + value + '; }'