diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-21 14:07:05 -0600 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2012-06-30 12:19:34 +0200 |
commit | 17a246001d9106bbf191b62d5db8801d81bc4f89 (patch) | |
tree | ff919a0c1bc8987e2bc80deaaede81ffb166fa4c /src/gui/general/LinedStaff.cpp | |
parent | 8808df134dab6cb13aceccbe8ab8dd06aa647940 (diff) | |
download | rosegarden-17a246001d9106bbf191b62d5db8801d81bc4f89.tar.gz rosegarden-17a246001d9106bbf191b62d5db8801d81bc4f89.zip |
Rename obsolete tq methods to standard names
(cherry picked from commit c18386d69b76ef0218b5f0a08ca773fa824322b6)
Diffstat (limited to 'src/gui/general/LinedStaff.cpp')
-rw-r--r-- | src/gui/general/LinedStaff.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/gui/general/LinedStaff.cpp b/src/gui/general/LinedStaff.cpp index bb6bf59..9156efe 100644 --- a/src/gui/general/LinedStaff.cpp +++ b/src/gui/general/LinedStaff.cpp @@ -572,7 +572,7 @@ LinedStaff::getCanvasXForLeftOfRow(int row) const } void -LinedStaff::sizeStaff(HorizontalLayoutEngine &tqlayout) +LinedStaff::sizeStaff(HorizontalLayoutEngine &layout) { Profiler profiler("LinedStaff::sizeStaff", true); @@ -582,19 +582,19 @@ LinedStaff::sizeStaff(HorizontalLayoutEngine &tqlayout) // RG_DEBUG << "LinedStaff::sizeStaff" << endl; - int lastBar = tqlayout.getLastVisibleBarOnStaff(*this); + int lastBar = layout.getLastVisibleBarOnStaff(*this); double xleft = 0, xright = 0; bool haveXLeft = false; - xright = tqlayout.getBarPosition(lastBar) - 1; + xright = layout.getBarPosition(lastBar) - 1; TimeSignature currentTimeSignature; - for (int barNo = tqlayout.getFirstVisibleBarOnStaff(*this); + for (int barNo = layout.getFirstVisibleBarOnStaff(*this); barNo <= lastBar; ++barNo) { - double x = tqlayout.getBarPosition(barNo); + double x = layout.getBarPosition(barNo); if (!haveXLeft) { xleft = x; @@ -603,7 +603,7 @@ LinedStaff::sizeStaff(HorizontalLayoutEngine &tqlayout) double timeSigX = 0; TimeSignature timeSig; - bool isNew = tqlayout.getTimeSignaturePosition(*this, barNo, timeSig, timeSigX); + bool isNew = layout.getTimeSignaturePosition(*this, barNo, timeSig, timeSigX); if (isNew && barNo < lastBar) { currentTimeSignature = timeSig; @@ -619,8 +619,8 @@ LinedStaff::sizeStaff(HorizontalLayoutEngine &tqlayout) insertBar(x, ((barNo == lastBar) ? 0 : - (tqlayout.getBarPosition(barNo + 1) - x)), - tqlayout.isBarCorrectOnStaff(*this, barNo - 1), + (layout.getBarPosition(barNo + 1) - x)), + layout.isBarCorrectOnStaff(*this, barNo - 1), currentTimeSignature, barNo, showBarNo); @@ -745,7 +745,7 @@ LinedStaff::insertBar(double layoutX, double width, bool isCorrect, else line->show(); - // The bar lines have to be in order of tqlayout-x (there's no + // The bar lines have to be in order of layout-x (there's no // such interesting stipulation for beat or connecting lines) BarLineList::iterator insertPoint = lower_bound (m_barLines.begin(), m_barLines.end(), line, compareBars); @@ -1110,10 +1110,10 @@ LinedStaff::getLayoutXOfInsertCursor() const } timeT -LinedStaff::getInsertCursorTime(HorizontalLayoutEngine &tqlayout) const +LinedStaff::getInsertCursorTime(HorizontalLayoutEngine &layout) const { if (m_insertCursorTimeValid) return m_insertCursorTime; - return tqlayout.getTimeForX(getLayoutXOfInsertCursor()); + return layout.getTimeForX(getLayoutXOfInsertCursor()); } void @@ -1141,10 +1141,10 @@ LinedStaff::setPointerPosition(double canvasX, int canvasY) } void -LinedStaff::setPointerPosition(HorizontalLayoutEngine &tqlayout, +LinedStaff::setPointerPosition(HorizontalLayoutEngine &layout, timeT time) { - setPointerPosition(tqlayout.getXForTime(time)); + setPointerPosition(layout.getXForTime(time)); } void @@ -1176,10 +1176,10 @@ LinedStaff::setInsertCursorPosition(double canvasX, int canvasY) } void -LinedStaff::setInsertCursorPosition(HorizontalLayoutEngine &tqlayout, +LinedStaff::setInsertCursorPosition(HorizontalLayoutEngine &layout, timeT time) { - double x = tqlayout.getXForTime(time); + double x = layout.getXForTime(time); LinedStaffCoords coords = getCanvasCoordsForLayoutCoords(x, 0); setInsertCursorPosition(coords.first, coords.second); m_insertCursorTime = time; |