C++ / build (pull_request) Failing after 15s
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 28s
Python / lint-format (pull_request) Successful in 45s
Python / test (pull_request) Successful in 38s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m45s
21 lines
339 B
C++
21 lines
339 B
C++
#pragma once
|
|
|
|
#include <qobject.h>
|
|
#include <qqmlintegration.h>
|
|
|
|
namespace ZShell {
|
|
|
|
class Qalculator : public QObject {
|
|
Q_OBJECT
|
|
QML_ELEMENT
|
|
QML_SINGLETON
|
|
|
|
public:
|
|
explicit Qalculator(QObject* parent = nullptr);
|
|
|
|
Q_INVOKABLE [[nodiscard]] QString eval(
|
|
const QString& expr, bool printExpr = true) const;
|
|
};
|
|
|
|
} // namespace ZShell
|