diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:33:46 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:33:46 -0600 |
commit | 4faf11eccc5f08d2aa0540157d6eff80b7cdb02a (patch) | |
tree | 19bc4d69423c21bcde8ac0cb6fcb11146ae19137 /src/gui/rulers/LoopRuler.cpp | |
parent | e6d6692eda797b10f322a83ffdcf23fca719709e (diff) | |
download | rosegarden-4faf11eccc5f08d2aa0540157d6eff80b7cdb02a.tar.gz rosegarden-4faf11eccc5f08d2aa0540157d6eff80b7cdb02a.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'src/gui/rulers/LoopRuler.cpp')
-rw-r--r-- | src/gui/rulers/LoopRuler.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/rulers/LoopRuler.cpp b/src/gui/rulers/LoopRuler.cpp index 885d7fc..b8b45fe 100644 --- a/src/gui/rulers/LoopRuler.cpp +++ b/src/gui/rulers/LoopRuler.cpp @@ -103,7 +103,7 @@ void LoopRuler::scrollHoriz(int x) { if (getHScaleFactor() != 1.0) { m_currentXOffset = static_cast<int>( -x / getHScaleFactor()); - tqrepaint(); + repaint(); return; } @@ -118,14 +118,14 @@ void LoopRuler::scrollHoriz(int x) if (dx > 0) { // moving right, so the existing stuff moves left bitBlt(this, 0, 0, this, dx, 0, w - dx, h); - tqrepaint(w - dx, 0, dx, h); + repaint(w - dx, 0, dx, h); } else { // moving left, so the existing stuff moves right bitBlt(this, -dx, 0, this, 0, 0, w + dx, h); - tqrepaint(0, 0, -dx, h); + repaint(0, 0, -dx, h); } } -TQSize LoopRuler::tqsizeHint() const +TQSize LoopRuler::sizeHint() const { double width = m_rulerScale->getBarPosition(m_rulerScale->getLastVisibleBar()) + @@ -137,7 +137,7 @@ TQSize LoopRuler::tqsizeHint() const return res; } -TQSize LoopRuler::tqminimumSizeHint() const +TQSize LoopRuler::minimumSizeHint() const { double firstBarWidth = m_rulerScale->getBarWidth(0) + m_xorigin; @@ -156,7 +156,7 @@ void LoopRuler::paintEvent(TQPaintEvent* e) paint.setClipRegion(e->region()); paint.setClipRect(e->rect().normalize()); - paint.setBrush(tqcolorGroup().foreground()); + paint.setBrush(colorGroup().foreground()); drawBarSections(&paint); drawLoopMarker(&paint); @@ -352,7 +352,7 @@ void LoopRuler::slotSetLoopMarker(timeT startLoop, m_endLoop = endLoop; TQPainter paint(this); - paint.setBrush(tqcolorGroup().foreground()); + paint.setBrush(colorGroup().foreground()); drawBarSections(&paint); drawLoopMarker(&paint); |