summaryrefslogtreecommitdiffstats
path: root/src/gui/rulers/RawNoteRuler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/rulers/RawNoteRuler.cpp')
-rw-r--r--src/gui/rulers/RawNoteRuler.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/gui/rulers/RawNoteRuler.cpp b/src/gui/rulers/RawNoteRuler.cpp
index cc7d6e4..adfca44 100644
--- a/src/gui/rulers/RawNoteRuler.cpp
+++ b/src/gui/rulers/RawNoteRuler.cpp
@@ -35,12 +35,12 @@
#include "DefaultVelocityColour.h"
#include "gui/general/GUIPalette.h"
#include <klocale.h>
-#include <qcolor.h>
-#include <qpainter.h>
-#include <qrect.h>
-#include <qsize.h>
-#include <qtooltip.h>
-#include <qwidget.h>
+#include <tqcolor.h>
+#include <tqpainter.h>
+#include <tqrect.h>
+#include <tqsize.h>
+#include <tqtooltip.h>
+#include <tqwidget.h>
namespace Rosegarden
@@ -50,9 +50,9 @@ RawNoteRuler::RawNoteRuler(RulerScale *rulerScale,
Segment *segment,
double xorigin,
int height,
- QWidget *parent,
+ TQWidget *parent,
const char *name) :
- QWidget(parent, name),
+ TQWidget(parent, name),
m_xorigin(xorigin),
m_height(height),
m_currentXOffset(0),
@@ -61,12 +61,12 @@ RawNoteRuler::RawNoteRuler(RulerScale *rulerScale,
m_rulerScale(rulerScale)
{
setBackgroundColor(GUIPalette::getColour(GUIPalette::RawNoteRulerBackground));
- QToolTip::add(this,"");
+ TQToolTip::add(this,"");
}
RawNoteRuler::~RawNoteRuler()
{
- QToolTip::remove(this);
+ TQToolTip::remove(this);
// nothing else
}
@@ -101,7 +101,7 @@ RawNoteRuler::sizeHint() const
m_rulerScale->getBarWidth(m_rulerScale->getLastVisibleBar()) +
m_xorigin;
- QSize res(std::max(int(width), m_width), m_height);
+ TQSize res(std::max(int(width), m_width), m_height);
return res;
}
@@ -110,7 +110,7 @@ QSize
RawNoteRuler::minimumSizeHint() const
{
double firstBarWidth = m_rulerScale->getBarWidth(0) + m_xorigin;
- QSize res = QSize(int(firstBarWidth), m_height);
+ TQSize res = TQSize(int(firstBarWidth), m_height);
return res;
}
@@ -329,7 +329,7 @@ RawNoteRuler::EventTreeNode::getChildrenAboveOrBelow(bool below, int p)
}
void
-RawNoteRuler::drawNode(QPainter &paint, DefaultVelocityColour &vc,
+RawNoteRuler::drawNode(TQPainter &paint, DefaultVelocityColour &vc,
EventTreeNode *node, double height, double yorigin)
{
int depth = node->getDepth();
@@ -359,7 +359,7 @@ RawNoteRuler::drawNode(QPainter &paint, DefaultVelocityColour &vc,
long velocity = 100;
(*node->node)->get
<Int>(BaseProperties::VELOCITY, velocity);
- QColor colour = vc.getColour(velocity);
+ TQColor colour = vc.getColour(velocity);
timeT start = (*node->node)->getAbsoluteTime();
timeT end = (*node->node)->getDuration() + start;
@@ -435,14 +435,14 @@ RawNoteRuler::drawNode(QPainter &paint, DefaultVelocityColour &vc,
}
void
-RawNoteRuler::paintEvent(QPaintEvent* e)
+RawNoteRuler::paintEvent(TQPaintEvent* e)
{
if (!m_segment || !m_segment->getComposition())
return ;
// Tooltips
{
- QToolTip::remove(this);
+ TQToolTip::remove(this);
TrackId trackId = m_segment->getTrack();
Track *track =
m_segment->getComposition()->getTrackById(trackId);
@@ -450,7 +450,7 @@ RawNoteRuler::paintEvent(QPaintEvent* e)
if (track)
trackPosition = track->getPosition();
- QToolTip::add(this,i18n("Track #%1, Segment \"%2\" (runtime id %3)")
+ TQToolTip::add(this,i18n("Track #%1, Segment \"%2\" (runtime id %3)")
.arg(trackPosition + 1)
.arg(m_segment->getLabel())
.arg(m_segment->getRuntimeId()));
@@ -458,11 +458,11 @@ RawNoteRuler::paintEvent(QPaintEvent* e)
// START_TIMING;
- QPainter paint(this);
+ TQPainter paint(this);
paint.setClipRegion(e->region());
paint.setClipRect(e->rect().normalize());
- QRect clipRect = paint.clipRegion().boundingRect();
+ TQRect clipRect = paint.clipRegion().boundingRect();
timeT from = m_rulerScale->getTimeForX
(clipRect.x() - m_currentXOffset - 100 - m_xorigin);
@@ -475,7 +475,7 @@ RawNoteRuler::paintEvent(QPaintEvent* e)
// draw the extent of the segment using its color
- QColor brushColor = GUIPalette::convertColour(m_segment->getComposition()->
+ TQColor brushColor = GUIPalette::convertColour(m_segment->getComposition()->
getSegmentColourMap().getColourByIndex(m_segment->getColourIndex()));
paint.setPen(brushColor);
paint.setBrush(brushColor);
@@ -516,8 +516,8 @@ RawNoteRuler::paintEvent(QPaintEvent* e)
for (int depth = 0; depth < 3; ++depth) {
int grey = depth * 60 + 60;
- paint.setPen(QColor(grey, grey, grey));
- paint.setBrush(QColor(grey, grey, grey));
+ paint.setPen(TQColor(grey, grey, grey));
+ paint.setBrush(TQColor(grey, grey, grey));
base /= divisions[depth];
timeT t(barStart + base);