summaryrefslogtreecommitdiffstats
path: root/src/gui/rulers/RawNoteRuler.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:57:35 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:57:35 -0600
commit6ca08e7a881c0c97f338e0085f75af04ec08ad04 (patch)
tree5462bef0f060df1c19e3fcb98250e5cfa24edc11 /src/gui/rulers/RawNoteRuler.cpp
parent4faf11eccc5f08d2aa0540157d6eff80b7cdb02a (diff)
downloadrosegarden-6ca08e7a881c0c97f338e0085f75af04ec08ad04.tar.gz
rosegarden-6ca08e7a881c0c97f338e0085f75af04ec08ad04.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 4faf11eccc5f08d2aa0540157d6eff80b7cdb02a.
Diffstat (limited to 'src/gui/rulers/RawNoteRuler.cpp')
-rw-r--r--src/gui/rulers/RawNoteRuler.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/gui/rulers/RawNoteRuler.cpp b/src/gui/rulers/RawNoteRuler.cpp
index 30029bc..75ddc37 100644
--- a/src/gui/rulers/RawNoteRuler.cpp
+++ b/src/gui/rulers/RawNoteRuler.cpp
@@ -86,15 +86,15 @@ RawNoteRuler::slotScrollHoriz(int x)
if (dx > 0) { // moving right, so the existing stuff moves left
bitBlt(this, 0, 0, this, dx, 0, w - dx, h);
- repaint(w - dx, 0, dx, h);
+ tqrepaint(w - dx, 0, dx, h);
} else { // moving left, so the existing stuff moves right
bitBlt(this, -dx, 0, this, 0, 0, w + dx, h);
- repaint(0, 0, -dx, h);
+ tqrepaint(0, 0, -dx, h);
}
}
TQSize
-RawNoteRuler::sizeHint() const
+RawNoteRuler::tqsizeHint() const
{
double width =
m_rulerScale->getBarPosition(m_rulerScale->getLastVisibleBar()) +
@@ -107,7 +107,7 @@ RawNoteRuler::sizeHint() const
}
TQSize
-RawNoteRuler::minimumSizeHint() const
+RawNoteRuler::tqminimumSizeHint() const
{
double firstBarWidth = m_rulerScale->getBarWidth(0) + m_xorigin;
TQSize res = TQSize(int(firstBarWidth), m_height);
@@ -182,7 +182,7 @@ RawNoteRuler::addChildren(Segment *s,
else
rightmost = j;
- node->children.push_back(subnode);
+ node->tqchildren.push_back(subnode);
j = s->findTime(jex.second);
}
@@ -263,8 +263,8 @@ RawNoteRuler::dumpSubtree(EventTreeNode *node, int depth)
else {
std::cerr << "no-pitch]" << std::endl;
}
- for (EventTreeNode::NodeList::iterator i = node->children.begin();
- i != node->children.end(); ++i) {
+ for (EventTreeNode::NodeList::iterator i = node->tqchildren.begin();
+ i != node->tqchildren.end(); ++i) {
dumpSubtree(*i, depth + 1);
}
#endif
@@ -292,14 +292,14 @@ RawNoteRuler::dumpForest(EventTreeNode::NodeList *forest)
int
RawNoteRuler::EventTreeNode::getDepth()
{
- int subchildrenDepth = 0;
- for (NodeList::iterator i = children.begin();
- i != children.end(); ++i) {
+ int subtqchildrenDepth = 0;
+ for (NodeList::iterator i = tqchildren.begin();
+ i != tqchildren.end(); ++i) {
int subchildDepth = (*i)->getDepth();
- if (subchildDepth > subchildrenDepth)
- subchildrenDepth = subchildDepth;
+ if (subchildDepth > subtqchildrenDepth)
+ subtqchildrenDepth = subchildDepth;
}
- return subchildrenDepth + 1;
+ return subtqchildrenDepth + 1;
}
int
@@ -312,8 +312,8 @@ RawNoteRuler::EventTreeNode::getChildrenAboveOrBelow(bool below, int p)
int max = 0;
- for (NodeList::iterator i = children.begin();
- i != children.end(); ++i) {
+ for (NodeList::iterator i = tqchildren.begin();
+ i != tqchildren.end(); ++i) {
int forThisChild = (*i)->getChildrenAboveOrBelow(below, pitch);
long thisChildPitch = pitch;
(*(*i)->node)->get
@@ -339,7 +339,7 @@ RawNoteRuler::drawNode(TQPainter &paint, DefaultVelocityColour &vc,
int below = node->getChildrenAboveOrBelow(true);
- NOTATION_DEBUG << "RawNoteRuler::drawNode: children above: "
+ NOTATION_DEBUG << "RawNoteRuler::drawNode: tqchildren above: "
<< above << ", below: " << below << endl;
#endif
@@ -414,8 +414,8 @@ RawNoteRuler::drawNode(TQPainter &paint, DefaultVelocityColour &vc,
paint.drawLine(ui0, iy + 1, ui0, iy + ih - 1);
paint.drawLine(ui1 - 1, iy + 1, ui1 - 1, iy + ih - 1);
- for (EventTreeNode::NodeList::iterator i = node->children.begin();
- i != node->children.end(); ++i) {
+ for (EventTreeNode::NodeList::iterator i = node->tqchildren.begin();
+ i != node->tqchildren.end(); ++i) {
long nodePitch = myPitch;
(*(*i)->node)->get
@@ -451,9 +451,9 @@ RawNoteRuler::paintEvent(TQPaintEvent* e)
trackPosition = track->getPosition();
TQToolTip::add(this,i18n("Track #%1, Segment \"%2\" (runtime id %3)")
- .arg(trackPosition + 1)
- .arg(m_segment->getLabel().c_str())
- .arg(m_segment->getRuntimeId()));
+ .tqarg(trackPosition + 1)
+ .tqarg(m_segment->getLabel().c_str())
+ .tqarg(m_segment->getRuntimeId()));
}
// START_TIMING;