Krita Source Code Documentation
Loading...
Searching...
No Matches
KisNumParser.h
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#ifndef KISNUMPARSER_H
7#define KISNUMPARSER_H
8
9#include <QObject>
10#include <QString>
11#include <QQmlEngine>
12
13#include <limits>
14
15#include <kis_num_parser.h>
16
17class KisNumParser : public QObject
18{
19 Q_OBJECT
20 QML_ELEMENT
21
22public:
24 Q_INVOKABLE static double parseSimpleMathExpr(QString const &expr);
25};
26
27#endif
static Q_INVOKABLE double parseSimpleMathExpr(QString const &expr)
parse an expression to a double.