summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/guitar/ChordMap.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
commit11f31c37e5fa4889d9989f10272f44845449cb7b (patch)
tree4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/editors/guitar/ChordMap.cpp
parent832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff)
downloadrosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.tar.gz
rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.zip
Initial TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/editors/guitar/ChordMap.cpp')
-rw-r--r--src/gui/editors/guitar/ChordMap.cpp28
1 files changed, 14 insertions, 14 deletions
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 <qfile.h>
-#include <qtextstream.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
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 << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
<< "<!DOCTYPE rosegarden-chord-data>\n"
@@ -153,7 +153,7 @@ bool ChordMap::saveDocument(const QString& filename, bool userChordsOnly, QStrin
outStream << "<chords>\n";
- QString currentExt, currentRoot;
+ TQString currentExt, currentRoot;
for(iterator i = begin(); i != end(); ++i) {
const Chord& chord = *i;