Play animation when its getting closed

This commit is contained in:
Clemens Manert 2023-04-25 21:40:24 +02:00 committed by uwerat
parent 2e44c07a06
commit 29d1116af2

View File

@ -47,6 +47,11 @@ QskDrawer::QskDrawer( QQuickItem* parentItem ) :
setSkinHint( Q::Overlay | QskAspect::Style, false ); setSkinHint( Q::Overlay | QskAspect::Style, false );
initSizePolicy( QskSizePolicy::Fixed, QskSizePolicy::Fixed ); initSizePolicy( QskSizePolicy::Fixed, QskSizePolicy::Fixed );
connect(this, &QskDrawer::closed, this, [this](){
qDebug() << "Close this motherfucker";
startTransition( DasPanel | QskAspect::Metric, QskAnimationHint(200), .0, 1.0 );
});
} }
QskDrawer::~QskDrawer() QskDrawer::~QskDrawer()