diff options
author | Timothy Pearson <[email protected]> | 2011-12-15 15:33:46 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-15 15:33:46 -0600 |
commit | 4faf11eccc5f08d2aa0540157d6eff80b7cdb02a (patch) | |
tree | 19bc4d69423c21bcde8ac0cb6fcb11146ae19137 /src/gui/general/EditViewBase.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/general/EditViewBase.cpp')
-rw-r--r-- | src/gui/general/EditViewBase.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/gui/general/EditViewBase.cpp b/src/gui/general/EditViewBase.cpp index dda2c76..4318646 100644 --- a/src/gui/general/EditViewBase.cpp +++ b/src/gui/general/EditViewBase.cpp @@ -24,7 +24,7 @@ #include "EditViewBase.h" -#include <tqlayout.h> +#include <layout.h> #include <kapplication.h> #include <klocale.h> @@ -311,7 +311,7 @@ EditViewBase::makeViewLocalPropertyPrefix() void EditViewBase::paintEvent(TQPaintEvent* e) { // It is possible for this function to be called re-entrantly, - // because a re-tqlayout procedure may deliberately ask the event + // because a re-layout procedure may deliberately ask the event // loop to process some more events so as to keep the GUI looking // responsive. If that happens, we remember the events that came // in in the middle of one paintEvent call and process their union @@ -362,7 +362,7 @@ void EditViewBase::paintEvent(TQPaintEvent* e) // // If we have more than one segment modified, we need to update // them all at once with the same time range, otherwise we can run - // into problems when the tqlayout of one depends on the others. So + // into problems when the layout of one depends on the others. So // we use updateStart/End to calculate a bounding range for all // modifications. @@ -374,12 +374,12 @@ void EditViewBase::paintEvent(TQPaintEvent* e) Segment* segment = m_segments[i]; unsigned int refreshStatusId = m_segmentsRefreshStatusIds[i]; - SegmentRefreshtqStatus &refreshtqStatus = - segment->getRefreshtqStatus(refreshStatusId); + SegmentRefreshStatus &refreshStatus = + segment->getRefreshStatus(refreshStatusId); - if (refreshtqStatus.needsRefresh() && isCompositionModified()) { + if (refreshStatus.needsRefresh() && isCompositionModified()) { - // if composition is also modified, retqlayout everything + // if composition is also modified, relayout everything refreshSegment(0); segmentsToUpdate = 0; break; @@ -392,10 +392,10 @@ void EditViewBase::paintEvent(TQPaintEvent* e) m_timeSigNotifier->reset(); break; - } else if (refreshtqStatus.needsRefresh()) { + } else if (refreshStatus.needsRefresh()) { - timeT startTime = refreshtqStatus.from(), - endTime = refreshtqStatus.to(); + timeT startTime = refreshStatus.from(), + endTime = refreshStatus.to(); if (segmentsToUpdate == 0 || startTime < updateStart) { updateStart = startTime; @@ -406,7 +406,7 @@ void EditViewBase::paintEvent(TQPaintEvent* e) singleSegment = segment; ++segmentsToUpdate; - refreshtqStatus.setNeedsRefresh(false); + refreshStatus.setNeedsRefresh(false); m_needUpdate = true; } } @@ -518,13 +518,13 @@ void EditViewBase::initSegmentRefreshStatusIds() bool EditViewBase::isCompositionModified() { - return getDocument()->getComposition().getRefreshtqStatus + return getDocument()->getComposition().getRefreshStatus (m_compositionRefreshStatusId).needsRefresh(); } void EditViewBase::setCompositionModified(bool c) { - getDocument()->getComposition().getRefreshtqStatus + getDocument()->getComposition().getRefreshStatus (m_compositionRefreshStatusId).setNeedsRefresh(c); } |