This is the binary distribution of racket-webview

This commit is contained in:
2026-04-05 14:49:27 +02:00
parent 291bb0c545
commit b0ed617c50
149 changed files with 5047 additions and 28 deletions

30
rktutils.cpp Normal file
View File

@@ -0,0 +1,30 @@
#include "rktutils.h"
#include <QJsonDocument>
#include <QJsonObject>
#include <QMetaType>
QString mkEventJson(const EventContainer &kv)
{
QJsonObject obj;
QList<QString> keys = kv.keys();
int i, N;
for(i = 0, N = keys.length(); i < N; i++) {
const QString &key = keys[i];
const QVariant &v = kv[key];
obj[key] = v.toJsonValue();
}
QJsonDocument doc(obj);
return QString::fromUtf8(doc.toJson(QJsonDocument::JsonFormat::Compact));
}
QHash<QString, QVariant> mkEvent()
{
QHash<QString, QVariant> h;
return h;
}
int EventContainer::evt_count = 0;
qint64 EventContainer::ms_start = -1;