4#ifndef QQMLPREVIEWBLACKLIST_H
5#define QQMLPREVIEWBLACKLIST_H
18#include <QtCore/qhash.h>
19#include <QtCore/qchar.h>
20#include <QtCore/qstring.h>
25class QQmlPreviewBlacklist
28 void blacklist(
const QString &path);
29 void whitelist(
const QString &path);
30 bool isBlacklisted(
const QString &path)
const;
43 Node(
const Node &other);
44 Node(Node &&other)
noexcept;
48 Node &operator=(
const Node &other);
49 Node &operator=(Node &&other)
noexcept;
51 void split(QString::iterator it, QString::iterator end);
52 void insert(
const QString &path,
int offset);
53 void remove(
const QString &path,
int offset);
54 PrefixResult findPrefix(
const QString &path,
int offset)
const;
57 Node(
const QString &mine,
const QHash<QChar, Node *> &next = QHash<QChar, Node *>(),
61 QHash<QChar, Node *> m_next;
62 bool m_isLeaf =
false;
void messageReceived(const QByteArray &message) override
void foundTranslationBinding(const TranslationBindingInformation &translationBindingInformation) override
void engineAboutToBeAdded(QJSEngine *engine) override
~QQmlDebugTranslationServiceImpl()
void state(const QString &stateName)
void engineAboutToBeRemoved(QJSEngine *engine) override
void watchTextElides(bool)
void sendTranslatableTextOccurrences()
void elidedTranslations()
QQuickItem * currentRootItem()
QMultiMap< QObject *, TranslationBindingInformation > objectTranslationBindingMultiMap
QQuickView * currentQuickView
QList< QPointer< QQuickItem > > translatableTextOccurrences
ProxyTranslator * proxyTranslator
bool enableWatchTranslations
QTimer translatableTextOccurrenceTimer
std::unique_ptr< QAbstractFileEngine > create(const QString &fileName) const override
If this file handler can handle fileName, this method creates a file engine and returns it wrapped in...
QQmlPreviewFileLoader(QQmlPreviewServiceImpl *service)
Result load(const QString &file)
bool isBlacklisted(const QString &file)
void whitelist(const QUrl &url)
void dropCU(const QUrl &url)
void zoom(qreal newFactor)
QQuickItem * currentRootItem()
bool eventFilter(QObject *obj, QEvent *event) override
Filters events if this object has been installed as an event filter for the watched object.
void fps(const FpsInfo &info)
void removeEngine(QQmlEngine *engine)
void addEngine(QQmlEngine *engine)
void loadUrl(const QUrl &url)
bool operator==(const QQmlPreviewPosition::ScreenData &other) const
void loadWindowPositionSettings(const QUrl &url)
void takePosition(QWindow *window, InitializeState state=PositionInitialized)
void initLastSavedWindowPosition(QWindow *window)
void forwardRequest(const QString &file)
void drop(const QUrl &url)
void engineAboutToBeRemoved(QJSEngine *engine) override
QQuickItem * currentRootItem()
QQmlPreviewServiceImpl(QObject *parent=nullptr)
void file(const QString &file, const QByteArray &contents)
void directory(const QString &file, const QStringList &entries)
virtual ~QQmlPreviewServiceImpl()
void engineAboutToBeAdded(QJSEngine *engine) override
void forwardFps(const QQmlPreviewHandler::FpsInfo &frames)
static const QString s_key
void load(const QUrl &url)
void stateChanged(State state) override
void forwardError(const QString &error)
void messageReceived(const QByteArray &message) override
QDebug operator<<(QDebug dbg, const QFileInfo &fi)
static QString translationIdString(const QQmlTranslation::QsTrData &data)