QV4::ReturnedValue QQmlLocaleData::method_get_textDirection(QV4::CallContext *ctx) { QLocale *locale = getThisLocale(ctx); if (!locale) return QV4::Encode::undefined(); return QV4::Encode(locale->textDirection()); }