KIO
kfileitemdelegate.h
Go to the documentation of this file.
128 Q_PROPERTY(bool showToolTipWhenElided READ showToolTipWhenElided WRITE setShowToolTipWhenElided)
232 virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
238 virtual QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const;
244 virtual bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem & option, const QModelIndex &index);
256 virtual void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const;
262 virtual void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option,const QModelIndex &index) const;
448 bool helpEvent(QHelpEvent * event, QAbstractItemView *view, const QStyleOptionViewItem &option, const QModelIndex &index);
void setShowInformation(const InformationList &list)
Sets the list of information lines that are shown below the icon label in list views.
Definition kfileitemdelegate.cpp:1007
void setShadowColor(const QColor &color)
Sets the color used for drawing the text shadow.
Definition kfileitemdelegate.cpp:1028
QPointF shadowOffset
This property holds the horizontal and vertical offset for the text shadow.
Definition kfileitemdelegate.h:102
QColor shadowColor
This property holds the color used for the text shadow.
Definition kfileitemdelegate.h:92
virtual void setEditorData(QWidget *editor, const QModelIndex &index) const
Reimplemented from QAbstractItemDelegate.
Definition kfileitemdelegate.cpp:1467
InformationList information
This property holds which additional information (if any) should be shown below items in icon views.
Definition kfileitemdelegate.h:79
void setShadowOffset(const QPointF &offset)
Sets the horizontal and vertical offset for the text shadow.
Definition kfileitemdelegate.cpp:1040
qreal shadowBlur
This property holds the blur radius for the text shadow.
Definition kfileitemdelegate.h:112
QList< Information > InformationList
Definition kfileitemdelegate.h:179
void setMaximumSize(const QSize &size)
Sets the maximum size for KFileItemDelegate::sizeHint().
Definition kfileitemdelegate.cpp:1064
virtual void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
Reimplemented from QAbstractItemDelegate.
Definition kfileitemdelegate.cpp:1498
void setWrapMode(QTextOption::WrapMode wrapMode)
When the contents text needs to be wrapped, wrapMode strategy will be followed.
Definition kfileitemdelegate.cpp:1088
QRect iconRect(const QStyleOptionViewItem &option, const QModelIndex &index) const
Returns the rectangle of the icon that is aligned inside the decoration rectangle.
Definition kfileitemdelegate.cpp:1099
Information
This enum defines the additional information that can be displayed below item labels in icon views.
Definition kfileitemdelegate.h:162
@ Comment
A simple comment that can be displayed to the user as is.
Definition kfileitemdelegate.h:176
@ OwnerAndGroup
The user and group that owns the file, e.g. root:root.
Definition kfileitemdelegate.h:168
@ LocalPathOrUrl
The local path to the file or the URL in case it is not a local file.
Definition kfileitemdelegate.h:175
@ FriendlyMimeType
The descriptive name for the mime type, e.g. HTML Document.
Definition kfileitemdelegate.h:173
@ ModificationTime
The date and time the file/folder was last modified.
Definition kfileitemdelegate.h:170
@ Size
The file size for files, and the number of items for folders.
Definition kfileitemdelegate.h:164
KFileItemDelegate(QObject *parent=0)
Constructs a new KFileItemDelegate.
Definition kfileitemdelegate.cpp:910
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
Paints the item indicated by index, using painter.
Definition kfileitemdelegate.cpp:1245
QSize maximumSize
This property holds the maximum size that can be returned by KFileItemDelegate::sizeHint().
Definition kfileitemdelegate.h:119
bool showToolTipWhenElided
This property determines whether a tooltip will be shown by the delegate if the display role is elide...
Definition kfileitemdelegate.h:128
virtual bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index)
Reimplemented from QAbstractItemDelegate.
Definition kfileitemdelegate.cpp:1455
void setJobTransfersVisible(bool jobTransfersVisible)
Enable/Disable the displaying of an animated overlay that is shown for any destination urls (in the v...
Definition kfileitemdelegate.cpp:1107
bool helpEvent(QHelpEvent *event, QAbstractItemView *view, const QStyleOptionViewItem &option, const QModelIndex &index)
Reimplemented from QAbstractItemDelegate.
Definition kfileitemdelegate.cpp:1546
void setShadowBlur(qreal radius)
Sets the blur radius for the text shadow.
Definition kfileitemdelegate.cpp:1052
bool jobTransfersVisible
This property determines if there are KIO jobs on a destination URL visible, then they will have a sm...
Definition kfileitemdelegate.h:135
InformationList showInformation() const
Returns the file item information that should be shown below item labels in list views.
Definition kfileitemdelegate.cpp:1022
virtual void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const
Reimplemented from QAbstractItemDelegate.
Definition kfileitemdelegate.cpp:1507
void setShowToolTipWhenElided(bool showToolTip)
Sets whether a tooltip should be shown if the display role is elided containing the full display role...
Definition kfileitemdelegate.cpp:1076
QTextOption::WrapMode wrapMode() const
Returns the wrapping strategy followed to show text when it needs wrapping.
Definition kfileitemdelegate.cpp:1094
virtual bool eventFilter(QObject *object, QEvent *event)
Reimplemented from QAbstractItemDelegate.
Definition kfileitemdelegate.cpp:1630
QRegion shape(const QStyleOptionViewItem &option, const QModelIndex &index)
Returns the shape of the item as a region.
Definition kfileitemdelegate.cpp:1587
virtual QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
Reimplemented from QAbstractItemDelegate.
Definition kfileitemdelegate.cpp:1439
virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
Returns the nominal size for the item referred to by index, given the provided options.
Definition kfileitemdelegate.cpp:941
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.