diff options
Diffstat (limited to 'src/gui/editors/guitar')
-rw-r--r-- | src/gui/editors/guitar/Chord.h | 2 | ||||
-rw-r--r-- | src/gui/editors/guitar/GuitarChordEditorDialog.cpp | 4 | ||||
-rw-r--r-- | src/gui/editors/guitar/GuitarChordSelectorDialog.cpp | 8 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/editors/guitar/Chord.h b/src/gui/editors/guitar/Chord.h index 0b6bc59..bd5bbaf 100644 --- a/src/gui/editors/guitar/Chord.h +++ b/src/gui/editors/guitar/Chord.h @@ -70,7 +70,7 @@ public: TQString getExt() const { return m_ext; } void setExt(TQString r) { m_ext = r.isEmpty() ? TQString() : r; } - bool hasAltBass() const { return m_ext.tqcontains(ALT_BASS_REGEXP); } + bool hasAltBass() const { return m_ext.contains(ALT_BASS_REGEXP); } Fingering getFingering() const { return m_fingering; } void setFingering(Fingering f) { m_fingering = f; } diff --git a/src/gui/editors/guitar/GuitarChordEditorDialog.cpp b/src/gui/editors/guitar/GuitarChordEditorDialog.cpp index 57df4d6..58ec54d 100644 --- a/src/gui/editors/guitar/GuitarChordEditorDialog.cpp +++ b/src/gui/editors/guitar/GuitarChordEditorDialog.cpp @@ -75,13 +75,13 @@ GuitarChordEditorDialog::GuitarChordEditorDialog(Guitar::Chord& chord, const Gui TQStringList rootList = m_chordMap.getRootList(); if (rootList.count() > 0) { m_rootNotesList->insertStringList(rootList); - m_rootNotesList->setCurrentItem(rootList.tqfindIndex(m_chord.getRoot())); + m_rootNotesList->setCurrentItem(rootList.findIndex(m_chord.getRoot())); } TQStringList extList = m_chordMap.getExtList(m_chord.getRoot()); if (extList.count() > 0) { m_ext->insertStringList(extList); - m_ext->setCurrentItem(extList.tqfindIndex(m_chord.getExt())); + m_ext->setCurrentItem(extList.findIndex(m_chord.getExt())); } } diff --git a/src/gui/editors/guitar/GuitarChordSelectorDialog.cpp b/src/gui/editors/guitar/GuitarChordSelectorDialog.cpp index 0f9ea8d..f564fdb 100644 --- a/src/gui/editors/guitar/GuitarChordSelectorDialog.cpp +++ b/src/gui/editors/guitar/GuitarChordSelectorDialog.cpp @@ -214,12 +214,12 @@ GuitarChordSelectorDialog::slotNewFingering() m_chordMap.insert(newChord); // populate lists // - if (!m_rootNotesList->tqfindItem(newChord.getRoot(), TQt::ExactMatch)) { + if (!m_rootNotesList->findItem(newChord.getRoot(), TQt::ExactMatch)) { m_rootNotesList->insertItem(newChord.getRoot()); m_rootNotesList->sort(); } - if (!m_chordExtList->tqfindItem(newChord.getExt(), TQt::ExactMatch)) { + if (!m_chordExtList->findItem(newChord.getExt(), TQt::ExactMatch)) { m_chordExtList->insertItem(newChord.getExt()); m_chordExtList->sort(); } @@ -280,7 +280,7 @@ GuitarChordSelectorDialog::setChord(const Guitar::Chord& chord) // select the chord's root // m_rootNotesList->setCurrentItem(0); - TQListBoxItem* correspondingRoot = m_rootNotesList->tqfindItem(chord.getRoot(), TQt::ExactMatch); + TQListBoxItem* correspondingRoot = m_rootNotesList->findItem(chord.getRoot(), TQt::ExactMatch); if (correspondingRoot) m_rootNotesList->setSelected(correspondingRoot, true); @@ -303,7 +303,7 @@ GuitarChordSelectorDialog::setChord(const Guitar::Chord& chord) chordExt = ""; m_chordExtList->setSelected(0, true); } else { - TQListBoxItem* correspondingExt = m_chordExtList->tqfindItem(chordExt, TQt::ExactMatch); + TQListBoxItem* correspondingExt = m_chordExtList->findItem(chordExt, TQt::ExactMatch); if (correspondingExt) m_chordExtList->setSelected(correspondingExt, true); } |