Play animation when its getting closed
This commit is contained in:
parent
2e44c07a06
commit
29d1116af2
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user