summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/guitar/GuitarChordSelectorDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/editors/guitar/GuitarChordSelectorDialog.cpp')
-rw-r--r--src/gui/editors/guitar/GuitarChordSelectorDialog.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/gui/editors/guitar/GuitarChordSelectorDialog.cpp b/src/gui/editors/guitar/GuitarChordSelectorDialog.cpp
index 5430098..0f9ea8d 100644
--- a/src/gui/editors/guitar/GuitarChordSelectorDialog.cpp
+++ b/src/gui/editors/guitar/GuitarChordSelectorDialog.cpp
@@ -41,8 +41,8 @@
namespace Rosegarden
{
-GuitarChordSelectorDialog::GuitarChordSelectorDialog(TQWidget *parent)
- : KDialogBase(parent, "GuitarChordSelector", true, i18n("Guitar Chord Selector"), Ok|Cancel)
+GuitarChordSelectorDialog::GuitarChordSelectorDialog(TQWidget *tqparent)
+ : KDialogBase(tqparent, "GuitarChordSelector", true, i18n("Guitar Chord Selector"), Ok|Cancel)
{
TQWidget *page = new TQWidget(this);
setMainWidget(page);
@@ -214,12 +214,12 @@ GuitarChordSelectorDialog::slotNewFingering()
m_chordMap.insert(newChord);
// populate lists
//
- if (!m_rootNotesList->findItem(newChord.getRoot(), Qt::ExactMatch)) {
+ if (!m_rootNotesList->tqfindItem(newChord.getRoot(), TQt::ExactMatch)) {
m_rootNotesList->insertItem(newChord.getRoot());
m_rootNotesList->sort();
}
- if (!m_chordExtList->findItem(newChord.getExt(), Qt::ExactMatch)) {
+ if (!m_chordExtList->tqfindItem(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->findItem(chord.getRoot(), Qt::ExactMatch);
+ TQListBoxItem* correspondingRoot = m_rootNotesList->tqfindItem(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->findItem(chordExt, Qt::ExactMatch);
+ TQListBoxItem* correspondingExt = m_chordExtList->tqfindItem(chordExt, TQt::ExactMatch);
if (correspondingExt)
m_chordExtList->setSelected(correspondingExt, true);
}
@@ -321,7 +321,7 @@ GuitarChordSelectorDialog::populateFingerings(const Guitar::ChordMap::chordarray
for(Guitar::ChordMap::chordarray::const_iterator i = chords.begin(); i != chords.end(); ++i) {
const Guitar::Chord& chord = *i;
- TQString fingeringString = chord.getFingering().toString();
+ TQString fingeringString = chord.getFingering().toString().c_str();
NOTATION_DEBUG << "GuitarChordSelectorDialog::populateFingerings " << chord << endl;
TQPixmap fingeringPixmap = getFingeringPixmap(chord.getFingering());
FingeringListBoxItem *item = new FingeringListBoxItem(chord, m_fingeringsList, fingeringPixmap, fingeringString);
@@ -334,7 +334,7 @@ GuitarChordSelectorDialog::populateFingerings(const Guitar::ChordMap::chordarray
}
-QPixmap
+TQPixmap
GuitarChordSelectorDialog::getFingeringPixmap(const Guitar::Fingering& fingering) const
{
TQPixmap pixmap(FINGERING_PIXMAP_WIDTH, FINGERING_PIXMAP_HEIGHT);
@@ -416,7 +416,7 @@ GuitarChordSelectorDialog::parseChordFile(const TQString& chordFileName)
TQFile chordFile(chordFileName);
bool ok = chordFile.open(IO_ReadOnly);
if (!ok)
- KMessageBox::error(0, i18n("couldn't open file '%1'").arg(handler.errorString()));
+ KMessageBox::error(0, i18n("couldn't open file '%1'").tqarg(handler.errorString()));
TQXmlInputSource source(chordFile);
TQXmlSimpleReader reader;
@@ -425,7 +425,7 @@ GuitarChordSelectorDialog::parseChordFile(const TQString& chordFileName)
NOTATION_DEBUG << "GuitarChordSelectorDialog::parseChordFile() parsing " << chordFileName << endl;
reader.parse(source);
if (!ok)
- KMessageBox::error(0, i18n("couldn't parse chord dictionnary : %1").arg(handler.errorString()));
+ KMessageBox::error(0, i18n("couldn't parse chord dictionnary : %1").tqarg(handler.errorString()));
}