rewrote timing of fading animation for not postponing updates of hidden fadeButton until it becomes visible (stable backport)

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/branches/lmms/stable-0.4@2058 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2009-02-19 15:03:23 +00:00
parent 168b65dfae
commit 9b533f055a
3 changed files with 29 additions and 24 deletions

View File

@@ -1,7 +1,7 @@
/*
* fade_button.h - declaration of class fadeButton
*
* Copyright (c) 2005-2007 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2005-2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -26,6 +26,7 @@
#ifndef _FADE_BUTTON_H
#define _FADE_BUTTON_H
#include <QtCore/QTime>
#include <QtGui/QAbstractButton>
#include <QtGui/QColor>
@@ -42,7 +43,6 @@ public:
public slots:
void activate( void );
void reset( void );
protected:
@@ -51,7 +51,7 @@ protected:
private:
float m_state;
QTime m_stateTimer;
QColor m_normalColor;
QColor m_activatedColor;