KDE paste: Fix compilation with Qt 4.7.

Change-Id: I0348066272d4753442371e16dc56db56aa742b0d
Reviewed-by: Bill King <bill.king@nokia.com>
This commit is contained in:
Friedemann Kleint
2011-11-08 12:29:30 +01:00
parent 332ea08142
commit 85fbf58c0f

View File

@@ -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;