Incidenceeditor
attachmenticonview.cpp
112 return icon(db.mimeTypeForName(mAttachment.mimeType()), mAttachment.uri(), mAttachment.isBinary());
132 if (mAttachment.mimeType().isEmpty() || !(db.mimeTypeForName(mAttachment.mimeType()).isValid())) {
174 file = new QTemporaryFile(QDir::tempPath() + "/attachementview_XXXXX"_L1 + patterns.first().remove(QLatin1Char('*')));
190QMimeData *AttachmentIconView::mimeData(const QList<QListWidgetItem *> &items) const // clazy:exclude=function-args-by-ref
253 if ((event->key() == Qt::Key_Return || event->key() == Qt::Key_Enter) && currentItem() && state() != EditingState) {
254 Q_EMIT itemDoubleClicked(currentItem()); // ugly, but itemActivated() also includes single click
QByteArray decodedData() const
bool isEmpty() const
QString uri() const
bool isBinary() const
QString mimeType() const
void setDecodedData(const QByteArray &data)
bool isUri() const
QByteArray data() const
QString label() const
void setUri(const QString &uri)
void setMimeType(const QString &mime)
void setLabel(const QString &label)
SizeLarge
KCALUTILS_EXPORT QString mimeType()
KCRASH_EXPORT void setFlags(KCrash::CrashFlags flags)
QIcon addOverlays(const QIcon &icon, const QHash< Qt::Corner, QIcon > &overlays)
KCOREADDONS_EXPORT void setMetaData(const MetaDataMap &metaData, QMimeData *mimeData)
EditingState
virtual void keyPressEvent(QKeyEvent *event) override
State state() const const
QByteArray fromBase64(const QByteArray &base64, Base64Options options)
QString tempPath()
virtual bool setPermissions(Permissions permissions) override
ReadUser
virtual void close() override
QPixmap pixmap(QWindow *window, const QSize &size, Mode mode, State state) const const
QIcon fromTheme(const QString &name)
qint64 write(const QByteArray &data)
void append(QList< T > &&value)
bool empty() const const
T & first()
QListWidgetItem * currentItem() const const
virtual bool event(QEvent *e) override
void itemDoubleClicked(QListWidgetItem *item)
QList< QListWidgetItem * > selectedItems() const const
virtual QVariant data(int role) const const
Qt::ItemFlags flags() const const
QListWidget * listWidget() const const
void setFlags(Qt::ItemFlags flags)
void setIcon(const QIcon &icon)
void setText(const QString &text)
void setUrls(const QList< QUrl > &urls)
QMimeType mimeTypeForData(QIODevice *device) const const
QMimeType mimeTypeForName(const QString &nameOrAlias) const const
QMimeType mimeTypeForUrl(const QUrl &url) const const
globPatterns
bool isValid() const const
Q_EMITQ_EMIT
void setParent(QObject *parent)
QString fromLatin1(QByteArrayView str)
bool isEmpty() const const
QString join(QChar separator) const const
CustomContextMenu
typedef DropActions
ItemIsDragEnabled
Key_Return
virtual QString fileName() const const override
bool open()
void setAutoRemove(bool b)
QUrl fromLocalFile(const QString &localFile)
bool isValid() const const
QByteArray toPercentEncoding(const QString &input, const QByteArray &exclude, const QByteArray &include)
size
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:22 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:17:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.