* cache pixmap

* only redraw if angle has changed by more than 3 degrees
* cleanups



git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1148 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-06-15 21:48:26 +00:00
parent b210809e6e
commit 0520a02724
2 changed files with 58 additions and 35 deletions

View File

@@ -99,7 +99,6 @@ public:
public slots:
virtual void enterValue( void );
void connectToMidiDevice( void );
void displayHelp( void );
void friendlyUpdate( void );
@@ -145,6 +144,8 @@ protected:
float _innerRadius = 1) const;
private:
bool updateAngle( void );
inline float pageSize( void ) const
{
return( tMax<float>( ( model()->maxValue() -
@@ -160,6 +161,8 @@ private:
void buttonReleased( void );
float m_totalAngle;
int m_angle;
QImage m_cache;
int m_knobNum;
QString m_label;