5#ifndef QQMLPREVIEWBLACKLIST_H
6#define QQMLPREVIEWBLACKLIST_H
19#include <QtCore/qhash.h>
20#include <QtCore/qchar.h>
21#include <QtCore/qstring.h>
26class QQmlPreviewBlacklist
29 void blacklist(
const QStringList &paths);
30 void blacklist(
const QString &path);
31 void whitelist(
const QStringList &path);
32 void whitelist(
const QString &path);
33 bool isBlacklisted(
const QString &path)
const;
46 Node(
const Node &other);
47 Node(Node &&other)
noexcept;
51 Node &operator=(
const Node &other);
52 Node &operator=(Node &&other)
noexcept;
54 void split(QString::iterator it, QString::iterator end);
55 void insert(
const QString &path,
int offset);
56 void remove(
const QString &path,
int offset);
57 PrefixResult findPrefix(
const QString &path,
int offset)
const;
60 Node(
const QString &mine,
const QHash<QChar, Node *> &next = QHash<QChar, Node *>(),
64 QHash<QChar, Node *> m_next;
65 bool m_isLeaf =
false;
void load(const QUrl &url) final
void removeEngine(QQmlEngine *engine) final
void connectToService(QQmlPreviewServiceImpl *service) final
~QQmlClassicPreviewHandler() override
bool eventFilter(QObject *obj, QEvent *event) final
Filters events if this object has been installed as an event filter for the watched object.
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 disconnectWindow(QQuickWindow *window)
void fps(const QQmlPreviewHandler::FpsInfo &info)
void setCurrentRootItem(QQuickItem *item)
QList< QQmlEngine * > engines() const
void zoomWindow(QQuickWindow *window, qreal zoomFactor, QQmlPreviewPosition *position)
QQuickItem * currentRootItem() const
void setCurrentWindow(QQuickWindow *window)
void connectWindow(QQuickWindow *window)
void setAnimationSpeed(qreal newFactor)
virtual void removeEngine(QQmlEngine *engine)
virtual void load(const QUrl &url)=0
QQmlPreviewHandler(QObject *parent=nullptr)
virtual void addEngine(QQmlEngine *engine)
QQuickWindow * currentWindow() const
virtual void connectToService(QQmlPreviewServiceImpl *service)
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 animationSpeed(qreal factor)
void engineAboutToBeRemoved(QJSEngine *engine) override
QQuickItem * currentRootItem()
QQmlPreviewServiceImpl(QObject *parent=nullptr)
void file(const QString &file, const QByteArray &contents)
void forwardHotReloadFailure(const QString &reason)
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
Combined button and popup list for selecting options.
static Qt::WindowFlags fixFlags(Qt::WindowFlags flags)
static void closeAllWindows()
const bool quitLockEnabled