Okular
js_util.cpp
27 if (url.scheme() != QLatin1String("file") || url.scheme() != QLatin1String("http") || url.scheme() != QLatin1String("https")) {
28 return qjsEngine(this)->newErrorObject(QJSValue::URIError, QStringLiteral("Protocol not valid: '") + url.scheme() + QLatin1Char('\''));
91QString JSUtil::numberToString(double number, const QString &fmt, int precision, const QString &localeName) const
125 const QLocale locale2(locale.decimalPoint() == QLatin1Char('.') ? QStringLiteral("de") : QStringLiteral("en"));
138 * A method not present in the Adobe Javascript APIs reference. We add it here for our convenience. Not to be used externally.
KIOCORE_EXPORT QString number(KIO::filesize_t size)
KGuiItem ok()
char toLatin1() const const
URIError
bool isNumber() const const
void setProperty(const QString &name, const QJSValue &value)
qint32 toInt() const const
QString toString() const const
ShortFormat
QString dateTimeFormat(FormatType format) const const
QString decimalPoint() const const
QString monthName(int month, FormatType type) const const
double toDouble(QStringView s, bool *ok) const const
QString toString(QDate date, FormatType format) const const
bool contains(QChar ch, Qt::CaseSensitivity cs) const const
qsizetype indexOf(QChar ch, qsizetype from, Qt::CaseSensitivity cs) const const
QString & insert(qsizetype position, QChar ch)
bool isEmpty() const const
QString & replace(QChar before, QChar after, Qt::CaseSensitivity cs)
QString toUpper() const const
FullyDecoded
QUrl fromLocalFile(const QString &localFile)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:50 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:50 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.