summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/guitar/ChordXmlHandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/editors/guitar/ChordXmlHandler.cpp')
-rw-r--r--src/gui/editors/guitar/ChordXmlHandler.cpp40
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 );
}