11 m_root.insert(
path, 0);
17 m_root.remove(
path, 0);
22 return path.isEmpty() ? true : m_root.containedPrefixLeaf(
path, 0) > 0;
30QQmlPreviewBlacklist::Node::Node()
34QQmlPreviewBlacklist::Node::Node(
const QQmlPreviewBlacklist::Node &
other) :
38 m_next.insert(
it.key(),
new Node(**
it));
41QQmlPreviewBlacklist::Node::Node(QQmlPreviewBlacklist::Node &&
other)
noexcept
43 m_mine.swap(
other.m_mine);
44 m_next.swap(
other.m_next);
45 m_isLeaf =
other.m_isLeaf;
48QQmlPreviewBlacklist::Node::~Node()
53QQmlPreviewBlacklist::Node &QQmlPreviewBlacklist::Node::operator=(
54 const QQmlPreviewBlacklist::Node &
other)
57 m_mine =
other.m_mine;
59 m_next.insert(
it.key(),
new Node(**
it));
60 m_isLeaf =
other.m_isLeaf;
65QQmlPreviewBlacklist::Node &QQmlPreviewBlacklist::Node::operator=(
66 QQmlPreviewBlacklist::Node &&
other)
noexcept
69 m_mine.swap(
other.m_mine);
70 m_next.swap(
other.m_next);
71 m_isLeaf =
other.m_isLeaf;
82 Node *node =
new Node(existing, m_next, m_isLeaf);
84 m_next.insert(*
it, node);
85 m_mine.resize(
it - m_mine.
begin());
117 if (node ==
nullptr) {
121 node =
new Node(inserted);
142 if (
it != m_next.
end())
146int QQmlPreviewBlacklist::Node::containedPrefixLeaf(
const QString &
path,
int offset)
const
149 return (m_mine.isEmpty() && m_isLeaf) ?
offset : -1;
160 if (m_isLeaf &&
c ==
'/')
164 if (
it == m_next.
end())
167 return (*it)->containedPrefixLeaf(
path, ++
offset);
170QQmlPreviewBlacklist::Node::Node(
const QString &mine,
173 : m_mine(mine), m_next(
next), m_isLeaf(isLeaf)
void blacklist(const QString &path)
void whitelist(const QString &path)
bool isBlacklisted(const QString &path) const
iterator find(const T &value)
\macro QT_RESTRICTED_CAST_FROM_ASCII
iterator begin()
Returns an \l{STL-style iterators}{STL-style iterator} pointing to the first character in the string.
void resize(qsizetype size)
Sets the size of the string to size characters.
qDeleteAll(list.begin(), list.end())
QSet< QString >::iterator it
Combined button and popup list for selecting options.
GLenum GLuint GLintptr offset
GLsizei const GLchar *const * path
static void split(QT_FT_Vector *b)