Krita Source Code Documentation
Loading...
Searching...
No Matches
KisNumParser.cpp
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2024 Deif Lou <ginoba@gmail.com>
3
*
4
* SPDX-License-Identifier: GPL-2.0-or-later
5
*/
6
#include "
KisNumParser.h
"
7
8
double
KisNumParser::parseSimpleMathExpr
(QString
const
&expr)
9
{
10
bool
ok =
false
;
11
const
double
ret =
KisNumericParser::parseSimpleMathExpr
(expr, &ok);
12
if
(!ok) {
13
return
qQNaN();
14
}
15
return
ret;
16
}
KisNumParser.h
KisNumParser::parseSimpleMathExpr
static Q_INVOKABLE double parseSimpleMathExpr(QString const &expr)
parse an expression to a double.
Definition
KisNumParser.cpp:8
KisNumericParser::parseSimpleMathExpr
double parseSimpleMathExpr(const QString &expr, bool *noProblem)
parse an expression to a double.
Definition
kis_num_parser.cpp:50
qmlmodules
components
KisNumParser.cpp
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52