summaryrefslogtreecommitdiffstats
path: root/src/base/Composition.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-02 22:38:52 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-02 22:38:52 +0000
commit458efa7b0c935cbaafa2791021a5f8f7241aa876 (patch)
tree624583f2873febe23770bee3fa94b5c24bd59f4f /src/base/Composition.cpp
parent747037b72944ae2c02962b7c5c96e0a7f8852e38 (diff)
downloadrosegarden-458efa7b0c935cbaafa2791021a5f8f7241aa876.tar.gz
rosegarden-458efa7b0c935cbaafa2791021a5f8f7241aa876.zip
Initial TQt4 port of Rosegarden
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1230242 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/base/Composition.cpp')
-rw-r--r--src/base/Composition.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/base/Composition.cpp b/src/base/Composition.cpp
index cde3a8b..7c808e1 100644
--- a/src/base/Composition.cpp
+++ b/src/base/Composition.cpp
@@ -102,7 +102,7 @@ Composition::ReferenceSegment::getDuration() const
}
Composition::ReferenceSegment::iterator
-Composition::ReferenceSegment::find(Event *e)
+Composition::ReferenceSegment::tqfind(Event *e)
{
return std::lower_bound
(begin(), end(), e, ReferenceSegmentEventCmp());
@@ -116,7 +116,7 @@ Composition::ReferenceSegment::insert(Event *e)
m_eventType, e->getType(), __FILE__, __LINE__);
}
- iterator i = find(e);
+ iterator i = tqfind(e);
if (i != end() && (*i)->getAbsoluteTime() == e->getAbsoluteTime()) {
@@ -133,7 +133,7 @@ Composition::ReferenceSegment::insert(Event *e)
void
Composition::ReferenceSegment::erase(Event *e)
{
- iterator i = find(e);
+ iterator i = tqfind(e);
if (i != end()) Impl::erase(i);
}
@@ -141,7 +141,7 @@ Composition::ReferenceSegment::iterator
Composition::ReferenceSegment::findTime(timeT t)
{
Event dummy("dummy", t, 0, MIN_SUBORDERING);
- return find(&dummy);
+ return tqfind(&dummy);
}
Composition::ReferenceSegment::iterator
@@ -150,7 +150,7 @@ Composition::ReferenceSegment::findRealTime(RealTime t)
Event dummy("dummy", 0, 0, MIN_SUBORDERING);
dummy.set<Bool>(NoAbsoluteTimeProperty, true);
setTempoTimestamp(&dummy, t);
- return find(&dummy);
+ return tqfind(&dummy);
}
Composition::ReferenceSegment::iterator
@@ -298,7 +298,7 @@ Composition::weakDetachSegment(Segment *segment)
}
bool
-Composition::contains(const Segment *s)
+Composition::tqcontains(const Segment *s)
{
iterator i = findSegment(s);
return (i != end());