This commit is contained in:
Zacharias-Brohn
2026-03-04 20:06:58 +01:00
parent 5c428b211f
commit a2c9ad6e29
3 changed files with 72 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#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 QString eval(const QString& expr, bool printExpr = true) const;
};
} // namespace ZShell