summaryrefslogtreecommitdiff
path: root/muse2/muse/widgets/meter.h
diff options
context:
space:
mode:
authorTim E. Real <termtech@rogers.com>2011-09-28 08:00:58 +0000
committerTim E. Real <termtech@rogers.com>2011-09-28 08:00:58 +0000
commit0cab73d2dc68d68d0027763543772d43bcd31958 (patch)
treea09b96c5d305eed58be04abd0cd04d7ed2ed857c /muse2/muse/widgets/meter.h
parentd52fac00567bb85944188f3c946b86b2a420819c (diff)
Optimization: Orcan's meters are insanely lightning-fast now.
Diffstat (limited to 'muse2/muse/widgets/meter.h')
-rw-r--r--muse2/muse/widgets/meter.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/muse2/muse/widgets/meter.h b/muse2/muse/widgets/meter.h
index ba816319..7b5369b6 100644
--- a/muse2/muse/widgets/meter.h
+++ b/muse2/muse/widgets/meter.h
@@ -32,6 +32,7 @@
class QResizeEvent;
class QMouseEvent;
class QPainter;
+class QPainterPath;
namespace MusEWidget {
@@ -74,7 +75,7 @@ class Meter : public QFrame {
QColor separator_color;;
QColor peak_color;
int xrad, yrad;
-
+
private:
MeterType mtype;
bool overflow;
@@ -82,9 +83,9 @@ class Meter : public QFrame {
double maxVal;
double minScale, maxScale;
int yellowScale, redScale;
- int cur_yv, last_yv;
+ int cur_yv, last_yv, cur_ymax, last_ymax;
- void drawVU(QPainter& p, const QRect&, int);
+ void drawVU(QPainter& p, const QRect&, const QPainterPath&, int);
void paintEvent(QPaintEvent*);
void resizeEvent(QResizeEvent*);