kmail
attachmentview.cpp
Go to the documentation of this file.
97 connect( model, SIGNAL(dataChanged(QModelIndex,QModelIndex)), this, SLOT(updateAttachmentLabel()) );
195 d->infoAttachment->setText(i18np("1 attachment (%2)", "%1 attachments (%2)",model()->rowCount(), KGlobal::locale()->formatByteSize(qMax( 0LL, size ))));
KDEPIM_EXPORT void saveState(QWidget *widget, KConfigGroup &config)
QWidget * source() const
void keyPressEvent(QKeyEvent *event)
Definition: attachmentview.cpp:137
virtual int rowCount(const QModelIndex &parent) const =0
Definition: attachmentview.h:38
void setSelectionMode(QAbstractItemView::SelectionMode mode)
void selectNewAttachment()
Definition: attachmentview.cpp:198
void setMimeData(QMimeData *data)
QItemSelectionModel * selectionModel() const
virtual void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
virtual void setSourceModel(QAbstractItemModel *sourceModel)
bool restoreState(const QByteArray &state)
void setDragDropMode(DragDropMode behavior)
virtual void setVisible(bool visible)
T value() const
void setUniformRowHeights(bool uniform)
void rowsRemoved(const QModelIndex &parent, int start, int end)
void contextMenuRequested()
Qt::DropAction exec(QFlags< Qt::DropAction > supportedActions)
QSize size() const
void setColumnWidth(int column, int width)
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
void setLayout(QLayout *layout)
void modified(bool)
virtual void rowsInserted(const QModelIndex &parent, int start, int end)
void startDrag(Qt::DropActions supportedActions)
reimpl to avoid default drag cursor
Definition: attachmentview.cpp:206
virtual void select(const QModelIndex &index, QFlags< QItemSelectionModel::SelectionFlag > command)
QModelIndexList selectedRows(int column) const
virtual QVariant data(const QModelIndex &index, int role) const =0
virtual void dragEnterEvent(QDragEnterEvent *event)
virtual QMimeData * mimeData(const QModelIndexList &indexes) const
void setMargin(int margin)
void updateAttachmentLabel()
Definition: attachmentview.cpp:188
int key() const
void setColumnHidden(int column, bool hide)
AttachmentView(MessageComposer::AttachmentModel *model, QWidget *parent=0)
can't change model afterwards.
Definition: attachmentview.cpp:82
void dragEnterEvent(QDragEnterEvent *event)
reimpl to avoid drags from ourselves
Definition: attachmentview.cpp:154
void setSignEnabled(bool enabled)
Definition: attachmentview.cpp:169
void setSortingEnabled(bool enable)
void setSortCaseSensitivity(Qt::CaseSensitivity cs)
typedef DropActions
virtual void setModel(QAbstractItemModel *model)
void setResizeMode(ResizeMode mode)
QWidget(QWidget *parent, QFlags< Qt::WindowType > f)
QHeaderView * header() const
QAbstractItemModel * model() const
QModelIndex currentIndex() const
void setRootIsDecorated(bool show)
void setStretchLastSection(bool stretch)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setMargin(int)
void contextMenuEvent(QContextMenuEvent *event)
Definition: attachmentview.cpp:131
void setDropIndicatorShown(bool enable)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:32 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:32 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.