faster animation
This commit is contained in:
parent
646f66b90c
commit
c0c231773b
@ -49,10 +49,9 @@ FullScreenDialog::FullScreenDialog(QDeclarativeItem *parent)
|
||||
m_view->setAutoFillBackground(false);
|
||||
m_view->viewport()->setAutoFillBackground(false);
|
||||
m_view->setAttribute(Qt::WA_TranslucentBackground);
|
||||
m_view->setAttribute(Qt::WA_OpaquePaintEvent);
|
||||
m_view->setAttribute(Qt::WA_NoSystemBackground);
|
||||
m_view->viewport()->setAttribute(Qt::WA_OpaquePaintEvent);
|
||||
m_view->viewport()->setAttribute(Qt::WA_NoSystemBackground);
|
||||
m_view->setCacheMode(QGraphicsView::CacheNone);
|
||||
m_view->setWindowFlags(m_view->windowFlags() | Qt::FramelessWindowHint | Qt::CustomizeWindowHint);
|
||||
m_view->setFrameShape(QFrame::NoFrame);
|
||||
KWindowSystem::setOnAllDesktops(m_view->winId(), true);
|
||||
|
@ -210,7 +210,7 @@ Item {
|
||||
PropertyAnimation {
|
||||
properties: "y, alpha"
|
||||
easing.type: Easing.InOutQuad
|
||||
duration: 2250
|
||||
duration: 250
|
||||
}
|
||||
ScriptAction {
|
||||
script: root.status = DialogStatus.Closed
|
||||
@ -228,7 +228,7 @@ Item {
|
||||
PropertyAnimation {
|
||||
properties: "y, alpha"
|
||||
easing.type: Easing.InOutQuad
|
||||
duration: 2250
|
||||
duration: 250
|
||||
}
|
||||
ScriptAction {
|
||||
script: root.status = DialogStatus.Open
|
||||
|
Loading…
Reference in New Issue
Block a user