diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
commit | 11f31c37e5fa4889d9989f10272f44845449cb7b (patch) | |
tree | 4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/editors/guitar/ChordXmlHandler.cpp | |
parent | 832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff) | |
download | rosegarden-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/ChordXmlHandler.cpp')
-rw-r--r-- | src/gui/editors/guitar/ChordXmlHandler.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/gui/editors/guitar/ChordXmlHandler.cpp b/src/gui/editors/guitar/ChordXmlHandler.cpp index 701c43c..6802485 100644 --- a/src/gui/editors/guitar/ChordXmlHandler.cpp +++ b/src/gui/editors/guitar/ChordXmlHandler.cpp @@ -41,12 +41,12 @@ bool ChordXmlHandler::startDocument() return true; } -bool ChordXmlHandler::startElement(const QString& namespaceURI, - const QString& localName, - const QString& qName, - const QXmlAttributes& atts) +bool ChordXmlHandler::startElement(const TQString& namespaceURI, + const TQString& localName, + const TQString& qName, + const TQXmlAttributes& atts) { - QString lcName = qName.lower(); + TQString lcName = qName.lower(); if (lcName == "chordset") { // start new chord set @@ -60,7 +60,7 @@ bool ChordXmlHandler::startElement(const QString& namespaceURI, m_currentChord.setExt(atts.value("ext").stripWhiteSpace()); if (atts.index("user") >= 0) { - QString userVal = atts.value("user").stripWhiteSpace().lower(); + TQString userVal = atts.value("user").stripWhiteSpace().lower(); bool res = (userVal == "yes" || userVal == "1" || userVal == "true"); m_currentChord.setUserChord(res); } else { @@ -74,11 +74,11 @@ bool ChordXmlHandler::startElement(const QString& namespaceURI, return true; } -bool ChordXmlHandler::endElement(const QString& namespaceURI, - const QString& localName, - const QString& qName) +bool ChordXmlHandler::endElement(const TQString& namespaceURI, + const TQString& localName, + const TQString& qName) { - QString lcName = qName.lower(); + TQString lcName = qName.lower(); if (lcName == "fingering") { @@ -97,9 +97,9 @@ bool ChordXmlHandler::endElement(const QString& namespaceURI, return true; } -bool ChordXmlHandler::characters(const QString& ch) +bool ChordXmlHandler::characters(const TQString& ch) { - QString ch2 = ch.simplifyWhiteSpace(); + TQString ch2 = ch.simplifyWhiteSpace(); if (!ch2.isEmpty() && m_inFingering) { if (!parseFingering(ch2)) @@ -114,9 +114,9 @@ bool ChordXmlHandler::endDocument() return true; } -bool ChordXmlHandler::parseFingering(const QString& ch) { +bool ChordXmlHandler::parseFingering(const TQString& ch) { - QString errString; + TQString errString; Guitar::Fingering fingering = Guitar::Fingering::parseFingering(ch, errString); @@ -131,23 +131,23 @@ bool ChordXmlHandler::parseFingering(const QString& ch) { } bool -ChordXmlHandler::error(const QXmlParseException& exception) +ChordXmlHandler::error(const TQXmlParseException& exception) { - m_errorString = QString("%1 at line %2, column %3") + m_errorString = TQString("%1 at line %2, column %3") .arg(exception.message()) .arg(exception.lineNumber()) .arg(exception.columnNumber()); - return QXmlDefaultHandler::error( exception ); + return TQXmlDefaultHandler::error( exception ); } bool -ChordXmlHandler::fatalError(const QXmlParseException& exception) +ChordXmlHandler::fatalError(const TQXmlParseException& exception) { - m_errorString = QString("%1 at line %2, column %3") + m_errorString = TQString("%1 at line %2, column %3") .arg(exception.message()) .arg(exception.lineNumber()) .arg(exception.columnNumber()); - return QXmlDefaultHandler::fatalError( exception ); + return TQXmlDefaultHandler::fatalError( exception ); } |