summaryrefslogtreecommitdiffstats
path: root/arts/tools/levelmeters.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:49:11 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:49:11 -0600
commit83fbc82a101309e171089f0d5ed080f82a367345 (patch)
treec7b61083b6e2d4bfceaace9a7f018181ea36afec /arts/tools/levelmeters.cpp
parentb248983f92b865ef74636ab5a673ae3a88f79c20 (diff)
downloadtdemultimedia-83fbc82a101309e171089f0d5ed080f82a367345.tar.gz
tdemultimedia-83fbc82a101309e171089f0d5ed080f82a367345.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'arts/tools/levelmeters.cpp')
-rw-r--r--arts/tools/levelmeters.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/arts/tools/levelmeters.cpp b/arts/tools/levelmeters.cpp
index 08d9099b..63213cda 100644
--- a/arts/tools/levelmeters.cpp
+++ b/arts/tools/levelmeters.cpp
@@ -1,4 +1,4 @@
-#include <tqlayout.h>
+#include <layout.h>
#include <tqpainter.h>
#include <tqfontmetrics.h>
#include <tqptrlist.h>
@@ -20,7 +20,7 @@ PeakBar::PeakBar(TQWidget *parent)
lastValues.setAutoDelete( TRUE );
setFrameStyle(TQFrame::StyledPanel | TQFrame::Sunken);
- tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Preferred));
+ setSizePolicy(TQSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Preferred));
setBackgroundMode(NoBackground);
setMinimumSize(frameWidth()+7, 70);
}
@@ -30,7 +30,7 @@ void PeakBar::frameChanged() {
TQFrame::frameChanged();
}
-TQSize PeakBar::tqsizeHint() const {
+TQSize PeakBar::sizeHint() const {
return TQSize(13, 250);
}
@@ -104,7 +104,7 @@ void PeakBar::setValue(float f) {
lastValues.append(new Observation(f));
- tqrepaint();
+ repaint();
}
// -------------------------------------------------------------
@@ -112,17 +112,17 @@ void PeakBar::setValue(float f) {
PeakLevelMeters::PeakLevelMeters(TQWidget *parent):
StereoLevelMeter(parent), left(this), right(this), scaleView(this)
{
- TQBoxLayout *tqlayout= new TQHBoxLayout(this);
- tqlayout->addWidget(&left);
- // tqlayout->setStretchFactor(&left, 0);
- tqlayout->addWidget(&right);
- // tqlayout->setStretchFactor(&right, 0);
- tqlayout->addWidget(&scaleView);
- // tqlayout->setStretchFactor(&scaleView, 0);
+ TQBoxLayout *layout= new TQHBoxLayout(this);
+ layout->addWidget(&left);
+ // layout->setStretchFactor(&left, 0);
+ layout->addWidget(&right);
+ // layout->setStretchFactor(&right, 0);
+ layout->addWidget(&scaleView);
+ // layout->setStretchFactor(&scaleView, 0);
left.setLineWidth(2);
right.setLineWidth(2);
scaleView.setScaleMargins(right.frameWidth());
- tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Preferred));
+ setSizePolicy(TQSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Preferred));
setDbRange(36);
}
@@ -144,15 +144,15 @@ void PeakLevelMeters::setValues(float leftVal, float rightVal) {
ScaleView::ScaleView(TQWidget *parent): TQFrame(parent) {
font.setPixelSize(10);
- tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Preferred));
+ setSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Preferred));
}
void ScaleView::setDbRange(int db) {
dbRange= db;
- tqrepaint();
+ repaint();
}
-TQSize ScaleView::tqsizeHint() const {
+TQSize ScaleView::sizeHint() const {
return TQSize(TQFontMetrics(font).width("-88")+8, 250);
}
@@ -226,9 +226,9 @@ void LedMeter::setValue(float f)
StereoLedMeters::StereoLedMeters(TQWidget *parent)
: StereoLevelMeter(parent), left(this), right(this)
{
- TQBoxLayout *tqlayout= new TQHBoxLayout(this);
- tqlayout->addWidget(&left);
- tqlayout->addWidget(&right);
+ TQBoxLayout *layout= new TQHBoxLayout(this);
+ layout->addWidget(&left);
+ layout->addWidget(&right);
}
void StereoLedMeters::setValues(float leftVal, float rightVal) {