KIO
kmimetypechooser.cpp
Go to the documentation of this file.
94 d->mimeTypeTree->setColumnWidth(0, 20 * fm.height()); // big enough for most names, but not for the insanely long ones
QLayout * layout() const
QString caption()
QString i18n(const char *text)
void clear()
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
Qt::CheckState checkState(int column) const
QTreeWidgetItem * child(int index) const
MimetypeJob * mimetype(const KUrl &url, JobFlags flags=DefaultFlags)
Find mimetype for one file or directory.
Definition: job.cpp:1856
Definition: netaccess.h:36
KHBox(QWidget *parent=0)
bool contains(const QString &str, Qt::CaseSensitivity cs) const
void setIcon(int column, const QIcon &icon)
void writeEntry(const QString &key, const QVariant &value, WriteConfigFlags pFlags=Normal)
Show the Mimetypes Comment field in a column ("HTML Document").
Definition: kmimetypechooser.h:45
Show the Mimetypes Patterns field in a column ("*.html;*.htm").
Definition: kmimetypechooser.h:46
KSharedConfigPtr config()
QSize size() const
const char * name() const
QString number(int n, int base)
int count(const T &value) const
void append(const T &value)
bool isEmpty() const
bool isEmpty() const
static bool runCommand(const QString &cmd, QWidget *window)
Run the given shell command and notifies KDE of the starting of the application.
Definition: krun.cpp:1057
static void getCheckedItems(QList< QTreeWidgetItem * > &lst, QTreeWidgetItem *parent)
Definition: kmimetypechooser.cpp:229
iterator end()
QString quoteArg(const QString &arg)
QTreeWidgetItem * parent() const
void setExpanded(bool expand)
void setCheckState(int column, Qt::CheckState state)
Show the "Edit" button, allowing to edit the selected type.
Definition: kmimetypechooser.h:47
QString mid(int position, int n) const
KMimeTypeChooser(const QString &text=QString(), const QStringList &selectedMimeTypes=QStringList(), const QString &defaultGroup=QString(), const QStringList &groupsToShow=QStringList(), int visuals=Comments|Patterns|EditButton, QWidget *parent=0)
Create a new KMimeTypeChooser.
Definition: kmimetypechooser.cpp:61
void setCaption(const QString &c)
void setSpacing(int space)
void setText(int column, const QString &text)
QString left(int n) const
QString fromLatin1(const char *str, int size)
iterator insert(const Key &key, const T &value)
QTreeWidgetItem * topLevelItem(int index) const
This widget provides a checkable list of all available mimetypes, and a list of selected ones...
Definition: kmimetypechooser.h:36
topLevelItemCount
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
int childCount() const
QString text(int column) const
KMimeTypeChooserDialog(const QString &caption=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=0)
Create a KMimeTypeChooser dialog.
Definition: kmimetypechooser.cpp:293
static KSycoca * self()
iterator find(const Key &key)
~KMimeTypeChooserDialog()
Definition: kmimetypechooser.cpp:345
const T value(const Key &key) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.