6#include <QtCore/qloggingcategory.h>
73 if (from >= 0 && from < to) {
80 globs +=
ref.toString();
89 const int oldIndex = m_index;
98 if (oldIndex != m_index)
100 if (oldName != m_name)
102 if (oldExtensions != m_extensions)
104 if (oldGlobs != m_globs)
107 qCDebug(lcFileNameFilter).nospace() <<
"update called on " <<
this <<
" of " <<
parent()
108 <<
" with filter " <<
filter <<
" (current filters are " <<
filters <<
"):"
109 <<
"\n old index=" << oldIndex <<
"new index=" << m_index
110 <<
"\n old name=" << oldName <<
"new name=" << m_name
111 <<
"\n old extensions=" << oldExtensions <<
"new extensions=" << m_extensions
112 <<
"\n old glob=s" << oldGlobs <<
"new globs=" << m_globs;
115QStringList QQuickFileNameFilter::nameFilters()
const
120QString QQuickFileNameFilter::nameFilter(
int index)
const
127#include "moc_qquickfilenamefilter_p.cpp"
QStringList nameFilters() const
QObject * parent() const
Returns a pointer to the parent object.
void setOptions(const QSharedPointer< QFileDialogOptions > &options)
void update(const QString &filter)
void globsChanged(const QStringList &globs)
void nameChanged(const QString &name)
QSharedPointer< QFileDialogOptions > options() const
void indexChanged(int index)
void extensionsChanged(const QStringList &extensions)
constexpr QStringView mid(qsizetype pos, qsizetype n=-1) const noexcept
Returns the substring of length length starting at position start in this object.
\macro QT_RESTRICTED_CAST_FROM_ASCII
QString mid(qsizetype position, qsizetype n=-1) const
Returns a string that contains n characters of this string, starting at the specified position index.
QString left(qsizetype n) const
Returns a substring that contains the n leftmost characters of the string.
Combined button and popup list for selecting options.
#define Q_LOGGING_CATEGORY(name,...)
#define qCDebug(category,...)
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
static QString extractName(const QString &filter)
static QString extractExtension(QStringView filter)
static void extractExtensionsAndGlobs(QStringView filter, QStringList &extensions, QStringList &globs)
const QStringList filters({"Image files (*.png *.xpm *.jpg)", "Text files (*.txt)", "Any files (*)" })
[6]
\inmodule QtCore \reentrant
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent