KWidgetsAddons
kmimetypechooser.cpp
88 d->m_filterLineEdit->setPlaceholderText(tr("Search for file type or filename pattern…", "@info:placeholder"));
179 auto it = std::find_if(parentGroups.cbegin(), parentGroups.cend(), [maj](const QStandardItem *item) {
361 d->m_chooser = new KMimeTypeChooser(text, selMimeTypes, defaultGroup, groupsToShow, visuals, this);
A dialog to select MIME types from the list of available ones on the system.
Definition kmimetypechooser.h:112
KMimeTypeChooserDialog(const QString &title=QString(), const QString &text=QString(), const QStringList &selectedMimeTypes=QStringList(), const QString &defaultGroup=QString(), const QStringList &groupsToShow=QStringList(), int visuals=KMimeTypeChooser::Comments|KMimeTypeChooser::Patterns|KMimeTypeChooser::EditButton, QWidget *parent=nullptr)
Create a KMimeTypeChooser dialog.
Definition kmimetypechooser.cpp:349
This widget provides a checkable list of all available MIME types, presented as a treeview,...
Definition kmimetypechooser.h:31
KMimeTypeChooser(const QString &text=QString(), const QStringList &selectedMimeTypes=QStringList(), const QString &defaultGroup=QString(), const QStringList &groupsToShow=QStringList(), int visuals=Comments|Patterns|EditButton, QWidget *parent=nullptr)
Create a new KMimeTypeChooser.
Definition kmimetypechooser.cpp:55
@ Patterns
Show the MIME types glob patterns (e.g. "*.html;*.htm") in a column.
Definition kmimetypechooser.h:40
@ EditButton
Show the "Edit" button, allowing to edit the selected type.
Definition kmimetypechooser.h:41
@ Comments
Show the MIME type comment (e.g. "HTML Document") in a column.
Definition kmimetypechooser.h:39
KIOCORE_EXPORT MimetypeJob * mimetype(const QUrl &url, JobFlags flags=DefaultFlags)
void editMimeType(const QString &mimeType, QWidget *widget)
Starts the file types editor for a given MIME type.
Definition kmimetypeeditor.cpp:17
void clicked(bool checked)
virtual QModelIndex sibling(int row, int column, const QModelIndex &index) const const
void activated(const QModelIndex &index)
QModelIndex currentIndex() const const
void doubleClicked(const QModelIndex &index)
void addLayout(QLayout *layout, int stretch)
void addStretch(int stretch)
void addWidget(QWidget *widget, int stretch, Qt::Alignment alignment)
virtual void accept()
virtual void reject()
void accepted()
void rejected()
void setStandardButtons(StandardButtons buttons)
int averageCharWidth() const const
QIcon fromTheme(const QString &name)
void setBuddy(QWidget *buddy)
void setContentsMargins(const QMargins &margins)
void textChanged(const QString &text)
void append(QList< T > &&value)
bool isEmpty() const const
void reserve(qsizetype size)
qsizetype size() const const
QList< QMimeType > allMimeTypes() const const
QMimeType mimeTypeForName(const QString &nameOrAlias) const const
globPatterns
bool isValid() const const
int column() const const
int row() const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QString tr(const char *sourceText, const char *disambiguation, int n)
virtual QModelIndex mapFromSource(const QModelIndex &sourceIndex) const const override
virtual QModelIndex mapToSource(const QModelIndex &proxyIndex) const const override
void appendRow(QStandardItem *item)
Qt::CheckState checkState() const const
QStandardItem * child(int row, int column) const const
QStandardItem * parent() const const
int rowCount() const const
void setCheckState(Qt::CheckState state)
void setFlags(Qt::ItemFlags flags)
QString text() const const
void appendRow(QStandardItem *item)
virtual bool hasChildren(const QModelIndex &parent) const const override
QModelIndex indexFromItem(const QStandardItem *item) const const
QStandardItem * item(int row, int column) const const
QStandardItem * itemFromIndex(const QModelIndex &index) const const
virtual int rowCount(const QModelIndex &parent) const const override
virtual void sort(int column, Qt::SortOrder order) override
QString findExecutable(const QString &executableName, const QStringList &paths)
QString fromLatin1(QByteArrayView str)
bool isEmpty() const const
bool contains(QLatin1StringView str, Qt::CaseSensitivity cs) const const
Checked
ItemIsEnabled
void expand(const QModelIndex &index)
virtual void scrollTo(const QModelIndex &index, ScrollHint hint) override
void setEnabled(bool)
QFontMetrics fontMetrics() const const
void setWindowTitle(const QString &)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.