2010-08-14 Tasuku Suzuki <tasuku.suzuki@nokia.com>

        Reviewed by Antonio Gomes.

        [Qt] Fix compilation with QT_NO_LINEEDIT
        https://bugs.webkit.org/show_bug.cgi?id=38324

        * bridge/qt/qt_runtime.cpp:
        (JSC::Bindings::convertValueToQVariant):
        (JSC::Bindings::convertQVariantToValue):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65371 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent bb92f3d0
2010-08-14 Tasuku Suzuki <tasuku.suzuki@nokia.com>
Reviewed by Antonio Gomes.
[Qt] Fix compilation with QT_NO_LINEEDIT
https://bugs.webkit.org/show_bug.cgi?id=38324
* bridge/qt/qt_runtime.cpp:
(JSC::Bindings::convertValueToQVariant):
(JSC::Bindings::convertQVariantToValue):
2010-08-14 Rob Buis <rwlbuis@gmail.com>
Reviewed by Dirk Schulze.
......@@ -503,6 +503,7 @@ QVariant convertValueToQVariant(ExecState* exec, JSValue value, QMetaType::Type
ret = QTime(gdt.hour, gdt.minute, gdt.second);
dist = 10;
}
#ifndef QT_NO_DATESTRING
} else if (type == String) {
UString ustring = value.toString(exec);
QString qstring = QString((const QChar*)ustring.impl()->characters(), ustring.length());
......@@ -544,6 +545,7 @@ QVariant convertValueToQVariant(ExecState* exec, JSValue value, QMetaType::Type
dist = 3;
}
}
#endif // QT_NO_DATESTRING
}
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment