summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/VUMeter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/VUMeter.cpp')
-rw-r--r--src/gui/widgets/VUMeter.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/widgets/VUMeter.cpp b/src/gui/widgets/VUMeter.cpp
index ee9aacc..1f7a1c4 100644
--- a/src/gui/widgets/VUMeter.cpp
+++ b/src/gui/widgets/VUMeter.cpp
@@ -46,13 +46,13 @@ VUMeter::VUMeter(TQWidget *parent,
bool hasRecord,
int width,
int height,
- VUAlignment tqalignment,
+ VUAlignment alignment,
const char *name):
TQLabel(parent, name),
m_originalHeight(height),
m_active(true),
m_type(type),
- m_tqalignment(tqalignment),
+ m_alignment(alignment),
m_levelLeft(0),
m_recordLevelLeft(0),
m_peakLevelLeft(0),
@@ -121,7 +121,7 @@ VUMeter::VUMeter(TQWidget *parent,
setMinimumSize(width, m_originalHeight);
setMaximumSize(width, m_originalHeight);
- if (m_tqalignment == Vertical)
+ if (m_alignment == Vertical)
m_maxLevel = height;
else
m_maxLevel = width;
@@ -381,7 +381,7 @@ VUMeter::drawColouredBar(TQPainter *paint, int channel,
int medium = m_velocityColour->getMediumKnee(),
loud = m_velocityColour->getLoudKnee();
- if (m_tqalignment == Vertical) {
+ if (m_alignment == Vertical) {
if (h > loud) {
paint->setPen(m_velocityColour->getLoudColour());
paint->setBrush(TQBrush(m_velocityColour->getLoudColour(),
@@ -397,7 +397,7 @@ VUMeter::drawColouredBar(TQPainter *paint, int channel,
}
}
- if (m_tqalignment == Vertical) {
+ if (m_alignment == Vertical) {
if (h > medium) {
paint->setPen(m_velocityColour->getMediumColour());
paint->setBrush(TQBrush(m_velocityColour->getMediumColour(),
@@ -415,7 +415,7 @@ VUMeter::drawColouredBar(TQPainter *paint, int channel,
}
}
- if (m_tqalignment == Vertical) {
+ if (m_alignment == Vertical) {
paint->setPen(m_velocityColour->getQuietColour());
paint->setBrush(TQBrush(m_velocityColour->getQuietColour(),
style));
@@ -458,7 +458,7 @@ VUMeter::drawMeterLevel(TQPainter* paint)
loud = m_velocityColour->getLoudKnee();
if (m_stereo) {
- if (m_tqalignment == VUMeter::Vertical) {
+ if (m_alignment == VUMeter::Vertical) {
int hW = width() / 2;
int midWidth = 1;
@@ -561,7 +561,7 @@ VUMeter::drawMeterLevel(TQPainter* paint)
} else {
// Paint a vertical meter according to type
//
- if (m_tqalignment == VUMeter::Vertical) {
+ if (m_alignment == VUMeter::Vertical) {
int y = height() - (m_levelLeft * height()) / m_maxLevel;
drawColouredBar(paint, 0, 0, y, width(), height());