faster animation

This commit is contained in:
Marco Martin 2012-01-09 17:01:19 +01:00
parent 646f66b90c
commit c0c231773b
2 changed files with 3 additions and 4 deletions

View File

@ -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);

View File

@ -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