score
Home
Classes
Namespaces
Files
Loading...
Searching...
No Matches
score-plugin-js/JS/Qml/Utils.hpp
1
#pragma once
2
#include <JS/Qml/QmlObjects.hpp>
3
4
#include <QJSValue>
5
#include <QObject>
6
#include <QString>
7
8
#include <verdigris>
9
namespace
JS
10
{
11
class
JsUtils
:
public
QObject
12
{
13
W_OBJECT(
JsUtils
)
14
public
:
15
QByteArray readFile(QString path);
16
W_SLOT(readFile)
17
18
void
shell(QString cmd, QJSValue onFinish);
19
W_SLOT(shell)
20
21
QString layoutTextLines(QString text, QString font,
int
pointSize,
int
maxWidth);
22
W_SLOT(layoutTextLines)
23
};
24
}
JS::JsUtils
Definition
score-plugin-js/JS/Qml/Utils.hpp:12