integrated patch by Attila Herman which adds support for colorized graph and quantized values

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1578 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-09-07 14:34:43 +00:00
parent 299dd9197d
commit ac2003ca70
3 changed files with 25 additions and 5 deletions

View File

@@ -53,6 +53,8 @@ public:
void setForeground( const QPixmap & _pixmap );
void setGraphColor( const QColor );
inline graphModel * model( void )
{
return castModel<graphModel>();
@@ -89,6 +91,7 @@ private:
QPixmap m_foreground;
QColor m_graphColor;
graphModel * m_graphModel;
graphStyle m_graphStyle;
@@ -107,7 +110,8 @@ public:
float _max,
int _size,
:: model * _parent,
bool _default_constructed = FALSE );
bool _default_constructed = FALSE,
float _step = 0.0 );
virtual ~graphModel();
@@ -161,6 +165,7 @@ private:
QVector<float> m_samples;
float m_minValue;
float m_maxValue;
float m_step;
friend class graph;