From 29c58328af0d9ec8fa77253451e8d4801b372db3 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 30 Nov 2011 10:54:29 +0100 Subject: Since from to to heights are the same this is a noop, but it seems more correct this way. --- client/collapser.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'client') diff --git a/client/collapser.cc b/client/collapser.cc index a802396..2057a0e 100644 --- a/client/collapser.cc +++ b/client/collapser.cc @@ -32,8 +32,8 @@ #include "debug.h" -#define ANIM_TIME 300 // ms -#define ANIM_INTERVAL 5 // ms +#define ANIM_TIME 100 // ms +#define ANIM_INTERVAL 50 // ms Collapser::Collapser(QWidget *current, QScrollArea *scroll) { @@ -113,7 +113,7 @@ void Collapser::anim() // Make sure we don't 'bounce' around when animating to the same height. int height; if(placeholder.fromHeight() == placeholder.toHeight()) { - height = placeholder.fromHeight(); + height = placeholder.toHeight(); } else { height = (int)((1 - y) * placeholder.fromHeight() + y * placeholder.toHeight()); -- cgit v1.2.3