From 4faf11eccc5f08d2aa0540157d6eff80b7cdb02a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 15 Dec 2011 15:33:46 -0600 Subject: Rename a number of old tq methods that are no longer tq specific --- src/gui/general/BaseTool.h | 2 +- src/gui/general/CanvasItemGC.h | 4 +-- src/gui/general/EditView.cpp | 24 +++++++-------- src/gui/general/EditViewBase.cpp | 26 ++++++++--------- src/gui/general/EditViewBase.h | 2 +- src/gui/general/LinedStaff.cpp | 32 ++++++++++---------- src/gui/general/LinedStaff.h | 50 ++++++++++++++++---------------- src/gui/general/MidiPitchLabel.cpp | 2 +- src/gui/general/PresetGroup.cpp | 22 +++++++------- src/gui/general/PresetHandlerDialog.cpp | 20 ++++++------- src/gui/general/RosegardenCanvasView.cpp | 16 +++++----- src/gui/general/RosegardenScrollView.cpp | 6 ++-- 12 files changed, 103 insertions(+), 103 deletions(-) (limited to 'src/gui/general') diff --git a/src/gui/general/BaseTool.h b/src/gui/general/BaseTool.h index 2c1eab1..fa3027b 100644 --- a/src/gui/general/BaseTool.h +++ b/src/gui/general/BaseTool.h @@ -58,7 +58,7 @@ public: /** * Is called by the parent View (EditView or SegmentCanvas) when * the tool is set as current. - * Add any setup here (e.g. setting the mouse cursor tqshape) + * Add any setup here (e.g. setting the mouse cursor shape) */ virtual void ready(); diff --git a/src/gui/general/CanvasItemGC.h b/src/gui/general/CanvasItemGC.h index 50bd21f..681e021 100644 --- a/src/gui/general/CanvasItemGC.h +++ b/src/gui/general/CanvasItemGC.h @@ -52,10 +52,10 @@ namespace Rosegarden * * However, if the SegmentItem deletes its repeat rectangle, then when * the SegmentCanvas destruction occurs, the SegmentCanvas dtor will - * get a list of all its tqchildren (TQCanvas::allItems()), containing + * get a list of all its children (TQCanvas::allItems()), containing * both SegmentItems and their repeat rectangles. Deleting a * SegmentItem will delete its repeat rectangle, which will still be - * present in the all tqchildren list which the SegmentCanvas dtor is + * present in the all children list which the SegmentCanvas dtor is * iterating over. * * So a solution is simply to push to-be-deleted repeat rectangles on diff --git a/src/gui/general/EditView.cpp b/src/gui/general/EditView.cpp index f1f5dbf..0e66133 100644 --- a/src/gui/general/EditView.cpp +++ b/src/gui/general/EditView.cpp @@ -24,7 +24,7 @@ #include "EditView.h" -#include +#include #include "base/BaseProperties.h" #include @@ -138,7 +138,7 @@ EditView::EditView(RosegardenGUIDoc *doc, connect(m_controlRulers, TQT_SIGNAL(closeRequest(TQWidget*)), this, TQT_SLOT(slotRemoveControlRuler(TQWidget*))); - (dynamic_cast(m_bottomBox->tqlayout()))->setDirection(TQBoxLayout::BottomToTop); + (dynamic_cast(m_bottomBox->layout()))->setDirection(TQBoxLayout::BottomToTop); // m_rulerBoxFiller is a white label used to keep m_rulerBox exactly // above the scrolling part of the view (and never above the @@ -154,7 +154,7 @@ EditView::EditView(RosegardenGUIDoc *doc, m_grid->addLayout(gl, RULERS_ROW, m_mainCol); m_grid->addMultiCellLayout(m_controlBox, CONTROLS_ROW, CONTROLS_ROW, 0, 1); - m_controlBox->tqsetAlignment(AlignRight); + m_controlBox->setAlignment(AlignRight); // m_grid->addWidget(m_controlRulers, CONTROLRULER_ROW, 2); m_controlRulers->hide(); @@ -169,7 +169,7 @@ EditView::~EditView() void EditView::updateBottomWidgetGeometry() { - getBottomWidget()->tqlayout()->tqinvalidate(); + getBottomWidget()->layout()->invalidate(); getBottomWidget()->updateGeometry(); getCanvasView()->updateBottomWidgetGeometry(); } @@ -891,9 +891,9 @@ EditView::setupAddControlRulerMenu() TQString hexValue; hexValue.sprintf("(0x%x)", it->getControllerValue()); - itemStr = i18n("%1 Controller %2 %3").tqarg(strtoqstr(it->getName())) - .tqarg(it->getControllerValue()) - .tqarg(hexValue); + itemStr = i18n("%1 Controller %2 %3").arg(strtoqstr(it->getName())) + .arg(it->getControllerValue()) + .arg(hexValue); } else if (it->getType() == PitchBend::EventType) itemStr = i18n("Pitch Bend"); @@ -1114,10 +1114,10 @@ EditView::createInsertPitchActionMenu() insertPitchAction = new KAction - (flat.tqarg(notePitchNames[i]), + (flat.arg(notePitchNames[i]), CTRL + SHIFT + notePitchKeys[octave][i], TQT_TQOBJECT(this), TQT_SLOT(slotInsertNoteFromAction()), actionCollection(), - TQString("insert_%1_flat%2").tqarg(i).tqarg(octaveSuffix).ascii()); + TQString("insert_%1_flat%2").arg(i).arg(octaveSuffix).ascii()); menu->insert(insertPitchAction); } @@ -1127,7 +1127,7 @@ EditView::createInsertPitchActionMenu() (notePitchNames[i], notePitchKeys[octave][i], TQT_TQOBJECT(this), TQT_SLOT(slotInsertNoteFromAction()), actionCollection(), - TQString("insert_%1%2").tqarg(i).tqarg(octaveSuffix).ascii()); + TQString("insert_%1%2").arg(i).arg(octaveSuffix).ascii()); menu->insert(insertPitchAction); @@ -1137,10 +1137,10 @@ EditView::createInsertPitchActionMenu() insertPitchAction = new KAction - (sharp.tqarg(notePitchNames[i]), + (sharp.arg(notePitchNames[i]), SHIFT + notePitchKeys[octave][i], TQT_TQOBJECT(this), TQT_SLOT(slotInsertNoteFromAction()), actionCollection(), - TQString("insert_%1_sharp%2").tqarg(i).tqarg(octaveSuffix).ascii()); + TQString("insert_%1_sharp%2").arg(i).arg(octaveSuffix).ascii()); menu->insert(insertPitchAction); } 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 +#include #include #include @@ -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); } diff --git a/src/gui/general/EditViewBase.h b/src/gui/general/EditViewBase.h index aaf6dbe..ef70384 100644 --- a/src/gui/general/EditViewBase.h +++ b/src/gui/general/EditViewBase.h @@ -311,7 +311,7 @@ protected: protected slots: /** * save general Options like all bar positions and status as well - * as the tqgeometry and the recent file list to the configuration + * as the geometry and the recent file list to the configuration * file */ virtual void slotSaveOptions(); diff --git a/src/gui/general/LinedStaff.cpp b/src/gui/general/LinedStaff.cpp index ffaa28c..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); @@ -782,7 +782,7 @@ LinedStaff::insertBar(double layoutX, double width, bool isCorrect, TQFont font; font.setPixelSize(m_resolution * 3 / 2); TQFontMetrics metrics(font); - TQString text = TQString("%1").tqarg(barNo + 1); + TQString text = TQString("%1").arg(barNo + 1); TQCanvasItem *barNoText = new TQCanvasText(text, font, m_canvas); barNoText->setX(x); @@ -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; diff --git a/src/gui/general/LinedStaff.h b/src/gui/general/LinedStaff.h index 3dff372..0ebdf5f 100644 --- a/src/gui/general/LinedStaff.h +++ b/src/gui/general/LinedStaff.h @@ -87,7 +87,7 @@ public: protected: /** * Create a new LinedStaff for the given Segment, with a - * linear tqlayout. + * linear layout. * * \a id is an arbitrary id for the staff in its view, * not used within the LinedStaff implementation but @@ -104,7 +104,7 @@ protected: /** * Create a new LinedStaff for the given Segment, with a - * page tqlayout. + * page layout. * * \a id is an arbitrary id for the staff in its view, * not used within the LinedStaff implementation but @@ -117,7 +117,7 @@ protected: * staff line should be * * \a pageWidth is the width of a page, to determine - * when to break lines for page tqlayout + * when to break lines for page layout * * \a rowsPerPage is the number of rows to a page, or zero * for a single continuous page @@ -131,7 +131,7 @@ protected: /** * Create a new LinedStaff for the given Segment, with - * either page or linear tqlayout. + * either page or linear layout. */ LinedStaff(TQCanvas *, Segment *, SnapGrid *, int id, int resolution, int lineThickness, PageMode pageMode, @@ -304,14 +304,14 @@ public: virtual int getTitleHeight() const; /** - * Returns the width of the entire staff after tqlayout. Call + * Returns the width of the entire staff after layout. Call * this only after you've done the full sizeStaff/positionElements * procedure. */ virtual double getTotalWidth() const; /** - * Returns the height of the entire staff after tqlayout. Call + * Returns the height of the entire staff after layout. Call * this only after you've done the full sizeStaff/positionElements * procedure. If there are multiple rows, this will be the * height of all rows, including any space between rows that @@ -383,26 +383,26 @@ public: virtual void setCurrent(bool current); /** - * Move the playback pointer to the tqlayout-X coordinate + * Move the playback pointer to the layout-X coordinate * corresponding to the given time, and show it. */ virtual void setPointerPosition (HorizontalLayoutEngine&, timeT); /** - * Move the playback pointer to the tqlayout-X coordinate + * Move the playback pointer to the layout-X coordinate * corresponding to the given canvas coordinates, and show it. */ virtual void setPointerPosition(double x, int y); /** - * Move the playback pointer to the given tqlayout-X + * Move the playback pointer to the given layout-X * coordinate, and show it. */ virtual void setPointerPosition(double x); /** - * Returns the tqlayout-X coordinate corresponding to the current + * Returns the layout-X coordinate corresponding to the current * position of the playback pointer. */ virtual double getLayoutXOfPointer() const; @@ -419,19 +419,19 @@ public: virtual void hidePointer(); /** - * Move the insertion cursor to the tqlayout-X coordinate + * Move the insertion cursor to the layout-X coordinate * corresponding to the given time, and show it. */ virtual void setInsertCursorPosition(HorizontalLayoutEngine&, timeT); /** - * Move the insertion cursor to the tqlayout-X coordinate + * Move the insertion cursor to the layout-X coordinate * corresponding to the given canvas coordinates, and show it. */ virtual void setInsertCursorPosition(double x, int y); /** - * Returns the tqlayout-X coordinate corresponding to the current + * Returns the layout-X coordinate corresponding to the current * position of the insertion cursor. Returns -1 if this staff * is not current or there is some other problem. */ @@ -454,8 +454,8 @@ public: virtual void hideInsertCursor(); /** - * Query the given horizontal tqlayout object (which is assumed to - * have just completed its tqlayout procedure) to determine the + * Query the given horizontal layout object (which is assumed to + * have just completed its layout procedure) to determine the * required extents of the staff and the positions of the bars, * and create the bars and staff lines accordingly. It may be * called either before or after renderElements and/or @@ -464,7 +464,7 @@ public: * No bars or staff lines will appear unless this method has * been called. */ - virtual void sizeStaff(HorizontalLayoutEngine& tqlayout); + virtual void sizeStaff(HorizontalLayoutEngine& layout); /** * Generate or re-generate sprites for all the elements between @@ -486,9 +486,9 @@ public: /** * Assign suitable coordinates to the elements on the staff - * between the start and end times, based entirely on the tqlayout + * between the start and end times, based entirely on the layout * X and Y coordinates they were given by the horizontal and - * vertical tqlayout processes. + * vertical layout processes. * * The implementation is free to render any elements it * chooses in this method as well. @@ -519,7 +519,7 @@ public: * Also return the clef and key in force at these coordinates. * * The default implementation should suit for subclasses that only - * show a single element per tqlayout X coordinate. + * show a single element per layout X coordinate. */ virtual ViewElementList::iterator getClosestElementToCanvasCoords (double x, int y, @@ -533,7 +533,7 @@ public: /** * Return an iterator pointing to the nearest view element to the - * given tqlayout x-coordinate. + * given layout x-coordinate. * * If notesAndRestsOnly is true, do not return any view element * other than a note or rest. @@ -564,7 +564,7 @@ public: * * * The default implementation should suit for subclasses that only - * show a single element per tqlayout X coordinate. + * show a single element per layout X coordinate. */ virtual ViewElementList::iterator getElementUnderCanvasCoords (double x, int y, Event *&clef, Event *&key) { @@ -627,10 +627,10 @@ public: protected: // Methods that the subclass may (indeed, should) use to convert - // between the tqlayout coordinates of elements and their canvas + // between the layout coordinates of elements and their canvas // coordinates. These are deliberately not virtual. - // Note that even linear-tqlayout staffs have multiple rows; their + // Note that even linear-layout staffs have multiple rows; their // rows all have the same y coordinate but increasing x // coordinates, instead of the other way around. (The only reason // for this is that it seems to be more efficient from the TQCanvas @@ -682,7 +682,7 @@ protected: // signatures, override the deleteTimeSignatures and // insertTimeSignature methods. For repeated clefs and keys at // the start of each row, override deleteRepeatedClefsAndKeys - // and insertRepeatedClefAndKey, but note that your tqlayout class + // and insertRepeatedClefAndKey, but note that your layout class // will need to allot the space for them separately. virtual void resizeStaffLines(); @@ -737,7 +737,7 @@ protected: ItemMatrix m_staffLines; ItemList m_staffConnectingLines; - typedef std::pair LineRec; // tqlayout-x, line + typedef std::pair LineRec; // layout-x, line typedef FastVector LineRecList; typedef FastVector BarLineList;//!!! should be multiset I reckon static bool compareBars(const BarLine *, const BarLine *); diff --git a/src/gui/general/MidiPitchLabel.cpp b/src/gui/general/MidiPitchLabel.cpp index a103234..51742c3 100644 --- a/src/gui/general/MidiPitchLabel.cpp +++ b/src/gui/general/MidiPitchLabel.cpp @@ -55,7 +55,7 @@ MidiPitchLabel::MidiPitchLabel(int pitch) int baseOctave = config->readNumEntry("midipitchoctave", -2); int octave = (int)(((float)pitch) / 12.0) + baseOctave; - m_midiNote = notes[pitch % 12].tqarg(octave); + m_midiNote = notes[pitch % 12].arg(octave); } } diff --git a/src/gui/general/PresetGroup.cpp b/src/gui/general/PresetGroup.cpp index cb8efca..2c39256 100644 --- a/src/gui/general/PresetGroup.cpp +++ b/src/gui/general/PresetGroup.cpp @@ -70,7 +70,7 @@ PresetGroup::PresetGroup() : TQString language = KGlobal::locale()->language(); TQString presetFileName = TQString("%1/presets-%2.xml") - .tqarg(m_presetDirectory).tqarg(language); + .arg(m_presetDirectory).arg(language); if (!TQFileInfo(presetFileName).isReadable()) { @@ -78,14 +78,14 @@ PresetGroup::PresetGroup() : language.replace(TQRegExp("_.*$"), ""); presetFileName = TQString("%1/presets-%2.xml") - .tqarg(m_presetDirectory).tqarg(language); + .arg(m_presetDirectory).arg(language); if (!TQFileInfo(presetFileName).isReadable()) { RG_DEBUG << "Failed to open " << presetFileName << endl; presetFileName = TQString("%1/presets.xml") - .tqarg(m_presetDirectory); + .arg(m_presetDirectory); if (!TQFileInfo(presetFileName).isReadable()) { @@ -247,10 +247,10 @@ PresetGroup::error(const TQXmlParseException& exception) RG_DEBUG << "PresetGroup::error(): jubilation and glee, we have an error, whee!" << endl; m_errorString = TQString("%1 at line %2, column %3: %4") - .tqarg(exception.message()) - .tqarg(exception.lineNumber()) - .tqarg(exception.columnNumber()) - .tqarg(m_errorString); + .arg(exception.message()) + .arg(exception.lineNumber()) + .arg(exception.columnNumber()) + .arg(m_errorString); return TQXmlDefaultHandler::error(exception); } @@ -259,10 +259,10 @@ PresetGroup::fatalError(const TQXmlParseException& exception) { RG_DEBUG << "PresetGroup::fatalError(): double your jubilation, and triple your glee, a fatal error doth it be!" << endl; m_errorString = TQString("%1 at line %2, column %3: %4") - .tqarg(exception.message()) - .tqarg(exception.lineNumber()) - .tqarg(exception.columnNumber()) - .tqarg(m_errorString); + .arg(exception.message()) + .arg(exception.lineNumber()) + .arg(exception.columnNumber()) + .arg(m_errorString); return TQXmlDefaultHandler::fatalError(exception); } diff --git a/src/gui/general/PresetHandlerDialog.cpp b/src/gui/general/PresetHandlerDialog.cpp index 9d9c897..b97d581 100644 --- a/src/gui/general/PresetHandlerDialog.cpp +++ b/src/gui/general/PresetHandlerDialog.cpp @@ -27,7 +27,7 @@ #include "PresetHandlerDialog.h" -#include +#include #include #include @@ -81,7 +81,7 @@ PresetHandlerDialog::initDialog() TQFrame *frame = new TQFrame(vBox); - TQGridLayout *tqlayout = new TQGridLayout(frame, 6, 5, 10, 5); + TQGridLayout *layout = new TQGridLayout(frame, 6, 5, 10, 5); TQLabel *title = new TQLabel(i18n("Select preset track parameters for:"), frame); if (m_fromNotation) title->setText(i18n("Create appropriate notation for:")); @@ -114,14 +114,14 @@ PresetHandlerDialog::initDialog() onlyNewSegments->setChecked(true); } - tqlayout->addMultiCellWidget(title, 0, 0, 0, 1, AlignLeft); - tqlayout->addWidget(catlabel, 1, 0, AlignRight); - tqlayout->addWidget(m_categoryCombo, 1, 1); - tqlayout->addWidget(inslabel, 2, 0, AlignRight); - tqlayout->addWidget(m_instrumentCombo, 2, 1); - tqlayout->addWidget(plylabel, 3, 0, AlignRight); - tqlayout->addWidget(m_playerCombo, 3, 1); - tqlayout->addMultiCellWidget(scopeBox, 4, 4, 0, 1, AlignLeft); + layout->addMultiCellWidget(title, 0, 0, 0, 1, AlignLeft); + layout->addWidget(catlabel, 1, 0, AlignRight); + layout->addWidget(m_categoryCombo, 1, 1); + layout->addWidget(inslabel, 2, 0, AlignRight); + layout->addWidget(m_instrumentCombo, 2, 1); + layout->addWidget(plylabel, 3, 0, AlignRight); + layout->addWidget(m_playerCombo, 3, 1); + layout->addMultiCellWidget(scopeBox, 4, 4, 0, 1, AlignLeft); populateCategoryCombo(); // try to set to same category used previously diff --git a/src/gui/general/RosegardenCanvasView.cpp b/src/gui/general/RosegardenCanvasView.cpp index a806e8a..4893147 100644 --- a/src/gui/general/RosegardenCanvasView.cpp +++ b/src/gui/general/RosegardenCanvasView.cpp @@ -84,10 +84,10 @@ void RosegardenCanvasView::setBottomFixedWidget(TQWidget* w) { m_bottomWidget = w; if (m_bottomWidget) { - int lww = m_leftWidget ? m_leftWidget->tqsizeHint().width() : 0; + int lww = m_leftWidget ? m_leftWidget->sizeHint().width() : 0; m_bottomWidget->reparent(this, 0, TQPoint(0, 0)); - m_bottomWidget->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed)); - setMargins(lww, 0, 0, m_bottomWidget->tqsizeHint().height()); + m_bottomWidget->setSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed)); + setMargins(lww, 0, 0, m_bottomWidget->sizeHint().height()); } } @@ -399,7 +399,7 @@ void RosegardenCanvasView::updateBottomWidgetGeometry() if (!m_bottomWidget) return ; - int bottomWidgetHeight = m_bottomWidget->tqsizeHint().height(); + int bottomWidgetHeight = m_bottomWidget->sizeHint().height(); int leftWidgetWidth = 0; if (m_leftWidget && m_leftWidget->isVisible()) { @@ -447,10 +447,10 @@ void RosegardenCanvasView::setLeftFixedWidget(TQWidget* w) { m_leftWidget = w; if (m_leftWidget) { - int bwh = m_bottomWidget ? m_bottomWidget->tqsizeHint().height() : 0; + int bwh = m_bottomWidget ? m_bottomWidget->sizeHint().height() : 0; m_leftWidget->reparent(this, 0, TQPoint(0, 0)); - m_leftWidget->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Preferred)); - setMargins(m_leftWidget->tqsizeHint().width(), 0, 0, bwh); + m_leftWidget->setSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Preferred)); + setMargins(m_leftWidget->sizeHint().width(), 0, 0, bwh); } } @@ -467,7 +467,7 @@ void RosegardenCanvasView::updateLeftWidgetGeometry() m_leftWidget->setFixedWidth(leftWidgetWidth); int bottomWidgetHeight = m_bottomWidget ? - m_bottomWidget->tqsizeHint().height() : 0; + m_bottomWidget->sizeHint().height() : 0; setMargins(leftWidgetWidth, 0, 0, bottomWidgetHeight); diff --git a/src/gui/general/RosegardenScrollView.cpp b/src/gui/general/RosegardenScrollView.cpp index 815ab6b..c3184da 100644 --- a/src/gui/general/RosegardenScrollView.cpp +++ b/src/gui/general/RosegardenScrollView.cpp @@ -75,8 +75,8 @@ void RosegardenScrollView::setBottomFixedWidget(TQWidget* w) m_bottomWidget = w; if (m_bottomWidget) { m_bottomWidget->reparent(this, 0, TQPoint(0, 0)); - m_bottomWidget->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed)); - setMargins(0, 0, 0, m_bottomWidget->tqsizeHint().height()); + m_bottomWidget->setSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed)); + setMargins(0, 0, 0, m_bottomWidget->sizeHint().height()); } } @@ -376,7 +376,7 @@ void RosegardenScrollView::updateBottomWidgetGeometry() if (!m_bottomWidget) return ; - int bottomWidgetHeight = m_bottomWidget->tqsizeHint().height(); + int bottomWidgetHeight = m_bottomWidget->sizeHint().height(); setMargins(0, 0, 0, bottomWidgetHeight); TQRect r = frameRect(); -- cgit v1.2.1