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:
parent
dbe1135708
commit
63a2cca679
@ -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();
|
||||
|
@ -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 + '; }'
|
||||
|
Loading…
Reference in New Issue
Block a user