knode
attachment_view.cpp
Go to the documentation of this file.
76 QPointer<KNComposer::AttachmentPropertiesDlg> dlg = new KNComposer::AttachmentPropertiesDlg( item->mAttachment, this );
void removeCurrentAttachment()
Remove the currently selected attachment if there is a selection.
Definition: attachment_view.cpp:51
void emitDataChanged()
QVariant data(int column, int role) const
Reimplemented to return data from the underlying KNAttachment.
Definition: attachment_view.cpp:144
void setMovable(bool movable)
AttachmentView(QWidget *parent=0)
Constructor for the selection widget of identity.
Definition: attachment_view.cpp:36
void returnPressed()
This signal is emitted when the Return or Enter key is pressed on this widget.
void editCurrentAttachment()
Edit the currently selected attachment.
Definition: attachment_view.cpp:64
QList< QTreeWidgetItem * > items(const QMimeData *data) const
virtual QVariant data(int column, int role) const
virtual void contextMenuEvent(QContextMenuEvent *e)
int size() const
AttachmentViewItem(AttachmentView *parent, KNAttachment::Ptr attachment)
Constructor.
Definition: attachment_view.cpp:133
description of the attachment.
Definition: attachment_view.h:49
const QList< KNAttachment::Ptr > attachments()
Returns the list of attachments contained by this view .
Definition: attachment_view.cpp:85
void append(const T &value)
void deletePressed()
This signal is emitted when the Delete key is pressed on this widget.
bool isEmpty() const
QTreeWidgetItem * itemAt(const QPoint &p) const
virtual void contextMenuEvent(QContextMenuEvent *event)
Reimplemented to emit the contextMenuRequested() signal.
Definition: attachment_view.cpp:117
QTreeWidgetItem * currentItem() const
QTreeWidgetItem * takeTopLevelItem(int index)
int key() const
virtual void keyPressEvent(QKeyEvent *event)
Reimplemented to emit the deletePressed() and returnPressed() signals.
Definition: attachment_view.cpp:100
QList< QTreeWidgetItem * > selectedItems() const
void setCurrentItem(QTreeWidgetItem *item)
int indexOfTopLevelItem(QTreeWidgetItem *item) const
void contextMenuRequested(const QPoint &point)
Request a context menu on an attachment item at point.
void setResizeMode(ResizeMode mode)
MIME encoding (7bit, base64, etc.).
Definition: attachment_view.h:50
QHeaderView * header() const
void attachmentRemoved(KNAttachment::Ptr attachment, bool last)
This signal is emitted when an attachment was actually removed.
virtual void keyPressEvent(QKeyEvent *event)
int topLevelItemCount() const
void setStretchLastSection(bool stretch)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:18 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:34:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.