Try to make the animation a little more natural.
authorGerald Combs <gerald@wireshark.org>
Thu, 31 Oct 2013 00:01:51 +0000 (00:01 -0000)
committerGerald Combs <gerald@wireshark.org>
Thu, 31 Oct 2013 00:01:51 +0000 (00:01 -0000)
svn path=/trunk/; revision=52992

ui/qt/main_window.cpp

index 784952c83c98daab98ac6f4c4ec683cdd3a0835b..26a3a7998d8d746aeda983c180bde47f3eb601d9 100644 (file)
@@ -460,8 +460,10 @@ void MainWindow::loadWindowGeometry()
         pos_anim->setDuration(geom_animation_duration);
         pos_anim->setStartValue(pos());
         pos_anim->setEndValue(shadow_main.pos());
+        pos_anim->setEasingCurve(QEasingCurve::InOutQuad);
         size_anim->setDuration(geom_animation_duration);
         size_anim->setStartValue(size());
+        size_anim->setEasingCurve(QEasingCurve::InOutQuad);
         size_anim->setEndValue(shadow_main.size());
 
         pos_anim->start(QAbstractAnimation::DeleteWhenStopped);