From 11f31c37e5fa4889d9989f10272f44845449cb7b Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 6 Sep 2010 20:59:29 +0000 Subject: Initial TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/gui/editors/guitar/ChordMap.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/gui/editors/guitar/ChordMap.cpp') diff --git a/src/gui/editors/guitar/ChordMap.cpp b/src/gui/editors/guitar/ChordMap.cpp index 06662d9..207a336 100644 --- a/src/gui/editors/guitar/ChordMap.cpp +++ b/src/gui/editors/guitar/ChordMap.cpp @@ -25,8 +25,8 @@ #include "misc/Debug.h" #include "ChordMap.h" -#include -#include +#include +#include namespace Rosegarden { @@ -47,7 +47,7 @@ void ChordMap::insert(const Chord& c) ChordMap::chordarray -ChordMap::getChords(const QString& root, const QString& ext) const +ChordMap::getChords(const TQString& root, const TQString& ext) const { chordarray res; @@ -74,15 +74,15 @@ ChordMap::getChords(const QString& root, const QString& ext) const QStringList ChordMap::getRootList() const { - static QStringList rootNotes; + static TQStringList rootNotes; if (rootNotes.count() == 0) { - rootNotes = QStringList::split(QString(","), "A,A#/Bb,B,C,C#/Db,D,D#/Eb,E,F,F#/Gb,G,G#/Ab"); + rootNotes = TQStringList::split(TQString(","), "A,A#/Bb,B,C,C#/Db,D,D#/Eb,E,F,F#/Gb,G,G#/Ab"); } // extract roots from map itself - not a very good idea // -// QString currentRoot; +// TQString currentRoot; // // for(chordset::const_iterator i = m_map.begin(); i != m_map.end(); ++i) { // const Chord& chord = *i; @@ -96,10 +96,10 @@ ChordMap::getRootList() const } QStringList -ChordMap::getExtList(const QString& root) const +ChordMap::getExtList(const TQString& root) const { - QStringList extList; - QString currentExt = "ZZ"; + TQStringList extList; + TQString currentExt = "ZZ"; Chord tmp(root); @@ -134,14 +134,14 @@ ChordMap::remove(const Chord& c) m_needSave = true; } -bool ChordMap::saveDocument(const QString& filename, bool userChordsOnly, QString& errMsg) +bool ChordMap::saveDocument(const TQString& filename, bool userChordsOnly, TQString& errMsg) { - QFile file(filename); + TQFile file(filename); file.open(IO_WriteOnly); - QTextStream outStream(&file); + TQTextStream outStream(&file); - outStream.setEncoding(QTextStream::UnicodeUTF8); + outStream.setEncoding(TQTextStream::UnicodeUTF8); outStream << "\n" << "\n" @@ -153,7 +153,7 @@ bool ChordMap::saveDocument(const QString& filename, bool userChordsOnly, QStrin outStream << "\n"; - QString currentExt, currentRoot; + TQString currentExt, currentRoot; for(iterator i = begin(); i != end(); ++i) { const Chord& chord = *i; -- cgit v1.2.1