mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-26 05:26:00 +00:00
19 lines
356 B
C
19 lines
356 B
C
|
#pragma once
|
||
|
#include <QObject>
|
||
|
|
||
|
class QQmlEngine;
|
||
|
class QJSEngine;
|
||
|
|
||
|
class TextUtils : public QObject
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
Q_DISABLE_COPY_MOVE(TextUtils)
|
||
|
public:
|
||
|
static QObject *qmlInstance(QQmlEngine *engine, QJSEngine *scriptEngine);
|
||
|
|
||
|
Q_INVOKABLE QString htmlToPlainText(const QString& html);
|
||
|
|
||
|
private:
|
||
|
TextUtils(QObject *parent = nullptr);
|
||
|
};
|