diff options
Diffstat (limited to 'src/gui/widgets/VUMeter.cpp')
-rw-r--r-- | src/gui/widgets/VUMeter.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/src/gui/widgets/VUMeter.cpp b/src/gui/widgets/VUMeter.cpp index 1a6d90d..d963cc6 100644 --- a/src/gui/widgets/VUMeter.cpp +++ b/src/gui/widgets/VUMeter.cpp @@ -40,19 +40,19 @@ namespace Rosegarden { -VUMeter::VUMeter(TQWidget *parent, +VUMeter::VUMeter(TQWidget *tqparent, VUMeterType type, bool stereo, bool hasRecord, int width, int height, - VUAlignment alignment, + VUAlignment tqalignment, const char *name): - TQLabel(parent, name), + TQLabel(tqparent, name), m_originalHeight(height), m_active(true), m_type(type), - m_alignment(alignment), + m_tqalignment(tqalignment), 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_alignment == Vertical) + if (m_tqalignment == Vertical) m_maxLevel = height; else m_maxLevel = width; @@ -153,7 +153,7 @@ VUMeter::VUMeter(TQWidget *parent, red = max * 92 / 100; orange = max * 60 / 100; green = max * 10 / 100; - m_background = Qt::black; + m_background = TQt::black; } if (m_type == AudioPeakHoldLong || @@ -336,7 +336,7 @@ VUMeter::paintEvent(TQPaintEvent *e) drawMeterLevel(&paint); - paint.setPen(colorGroup().background()); + paint.setPen(tqcolorGroup().background()); paint.drawPoint(0, 0); paint.drawPoint(width() - 1, 0); paint.drawPoint(0, height() - 1); @@ -376,12 +376,12 @@ VUMeter::drawColouredBar(TQPainter *paint, int channel, m_type == AudioPeakHoldIEC || m_type == AudioPeakHoldIECLong) { - Qt::BrushStyle style = Qt::SolidPattern; + TQt::BrushStyle style = TQt::SolidPattern; int medium = m_velocityColour->getMediumKnee(), loud = m_velocityColour->getLoudKnee(); - if (m_alignment == Vertical) { + if (m_tqalignment == 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_alignment == Vertical) { + if (m_tqalignment == 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_alignment == Vertical) { + if (m_tqalignment == 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_alignment == VUMeter::Vertical) { + if (m_tqalignment == VUMeter::Vertical) { int hW = width() / 2; int midWidth = 1; @@ -492,12 +492,12 @@ VUMeter::drawMeterLevel(TQPainter* paint) y = height() - h; if (h > loud) { - paint->setPen(Qt::red); // brighter than the red meter bar + paint->setPen(TQt::red); // brighter than the red meter bar paint->drawLine(0, y - 1, hW - midWidth - 1, y - 1); paint->drawLine(0, y + 1, hW - midWidth - 1, y + 1); } - paint->setPen(Qt::white); + paint->setPen(TQt::white); paint->drawLine(0, y, hW - midWidth - 1, y); } @@ -524,13 +524,13 @@ VUMeter::drawMeterLevel(TQPainter* paint) y = height() - h; if (h > loud) { - paint->setPen(Qt::red); // brighter than the red meter bar + paint->setPen(TQt::red); // brighter than the red meter bar paint->drawLine(hW + midWidth, y - 1, width(), y - 1); paint->drawLine(hW + midWidth, y + 1, width(), y + 1); } - paint->setPen(Qt::white); - paint->setBrush(Qt::white); + paint->setPen(TQt::white); + paint->setBrush(TQt::white); paint->drawLine(hW + midWidth, y, width(), y); } @@ -545,8 +545,8 @@ VUMeter::drawMeterLevel(TQPainter* paint) paint->drawRect(0, 0, x, height()); if (m_showPeakLevel) { - paint->setPen(Qt::white); - paint->setBrush(Qt::white); + paint->setPen(TQt::white); + paint->setBrush(TQt::white); // show peak level x = m_peakLevelLeft * width() / m_maxLevel; @@ -561,7 +561,7 @@ VUMeter::drawMeterLevel(TQPainter* paint) } else { // Paint a vertical meter according to type // - if (m_alignment == VUMeter::Vertical) { + if (m_tqalignment == VUMeter::Vertical) { int y = height() - (m_levelLeft * height()) / m_maxLevel; drawColouredBar(paint, 0, 0, y, width(), height()); @@ -575,8 +575,8 @@ VUMeter::drawMeterLevel(TQPainter* paint) */ if (m_showPeakLevel) { - paint->setPen(Qt::white); - paint->setBrush(Qt::white); + paint->setPen(TQt::white); + paint->setBrush(TQt::white); y = height() - (m_peakLevelLeft * height()) / m_maxLevel; @@ -592,8 +592,8 @@ VUMeter::drawMeterLevel(TQPainter* paint) paint->drawRect(x, 0, width() - x, height()); if (m_showPeakLevel) { - paint->setPen(Qt::white); - paint->setBrush(Qt::white); + paint->setPen(TQt::white); + paint->setBrush(TQt::white); // show peak level x = (m_peakLevelLeft * width()) / m_maxLevel; |