mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 16:39:57 +00:00
QT5 -- 1 of 3
Porting the codebase to QT 5 (5.2) to get the latest bug fixes, performance and improved platform support. This first part is to fixup the codebase to compile on Qt 5, but some aspects have been broken (video). The second part is to migrate from Qwt 6.0.1 to the latest Qwt for multiaxis support. The third part will be to fixup any platform specific issues or issues identified at runtime.
This commit is contained in:
@@ -98,7 +98,7 @@ static QwtSymbol::Style intToSymbol(int x)
|
||||
bool LTMChartParser::startDocument()
|
||||
{
|
||||
buffer.clear();
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
static QString unprotect(QString buffer)
|
||||
@@ -167,7 +167,7 @@ bool LTMChartParser::endElement( const QString&, const QString&, const QString &
|
||||
settings.append(setting);
|
||||
else if (qName == "charts") { // <charts></charts> block top-level
|
||||
} // do nothing for now
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool LTMChartParser::startElement( const QString&, const QString&, const QString &name, const QXmlAttributes &attrs )
|
||||
@@ -189,13 +189,13 @@ bool LTMChartParser::startElement( const QString&, const QString&, const QString
|
||||
}
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool LTMChartParser::characters( const QString& str )
|
||||
{
|
||||
buffer += str;
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
QList<LTMSettings>
|
||||
@@ -206,7 +206,7 @@ LTMChartParser::getSettings()
|
||||
|
||||
bool LTMChartParser::endDocument()
|
||||
{
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
// static helper to protect special xml characters
|
||||
|
||||
Reference in New Issue
Block a user