forked from qt-creator/qt-creator
KDE paste: Fix compilation with Qt 4.7.
Change-Id: I0348066272d4753442371e16dc56db56aa742b0d Reviewed-by: Bill King <bill.king@nokia.com>
This commit is contained in:
@@ -220,7 +220,11 @@ static inline QStringList parseList(QIODevice *device)
|
||||
QXmlStreamReader reader(device);
|
||||
const QString pasteElementPrefix = QLatin1String("paste_");
|
||||
while (!reader.atEnd()) {
|
||||
#if QT_VERSION >= 0x040800
|
||||
if (reader.readNext() == QXmlStreamReader::StartElement && reader.name().startsWith(pasteElementPrefix))
|
||||
#else
|
||||
if (reader.readNext() == QXmlStreamReader::StartElement && reader.name().toString().startsWith(pasteElementPrefix))
|
||||
#endif
|
||||
result.append(reader.readElementText());
|
||||
}
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user