Compile fix Mac gcc 4.2.1

This commit is contained in:
Friedemann Kleint
2011-02-16 11:25:24 +01:00
parent 6ec5d03490
commit 3179e4642c

View File

@@ -116,11 +116,11 @@ class PropertyEditDelegate : public QItemDelegate
// add quotes if it's a string
QmlJSPropertyInspector::PropertyType propertyType = m_treeWidget->getTypeFor(index.row());
QChar quote('\"');
QChar backslash('\\');
const QChar quote(QLatin1Char('\"'));
if ( propertyType == QmlJSPropertyInspector::StringType ) {
propertyValue = propertyValue.replace(quote,backslash+quote);
const QChar backslash(QLatin1Char('\\'));
propertyValue = propertyValue.replace(quote, QString(backslash) + quote);
}
if ( propertyType == QmlJSPropertyInspector::StringType || propertyType == QmlJSPropertyInspector::ColorType ) {