KIO
kfileitemdelegate.h
116 Q_PROPERTY(bool showToolTipWhenElided READ showToolTipWhenElided WRITE setShowToolTipWhenElided)
159 LocalPathOrUrl, ///< The local path to the file or the URL in case it is not a local file. @since 4.5
213 void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
218 QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
223 bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) override;
233 void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override;
238 void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
405 bool helpEvent(QHelpEvent *event, QAbstractItemView *view, const QStyleOptionViewItem &option, const QModelIndex &index) override;
KFileItemDelegate is intended to be used to provide a KDE file system view, when using one of the sta...
Definition kfileitemdelegate.h:56
void setShowInformation(const InformationList &list)
Sets the list of information lines that are shown below the icon label in list views.
Definition kfileitemdelegate.cpp:895
void setShadowColor(const QColor &color)
Sets the color used for drawing the text shadow.
Definition kfileitemdelegate.cpp:914
QPointF shadowOffset
This property holds the horizontal and vertical offset for the text shadow.
Definition kfileitemdelegate.h:90
QColor shadowColor
This property holds the color used for the text shadow.
Definition kfileitemdelegate.h:80
InformationList information
This property holds which additional information (if any) should be shown below items in icon views.
Definition kfileitemdelegate.h:67
void setShadowOffset(const QPointF &offset)
Sets the horizontal and vertical offset for the text shadow.
Definition kfileitemdelegate.cpp:924
qreal shadowBlur
This property holds the blur radius for the text shadow.
Definition kfileitemdelegate.h:100
void setMaximumSize(const QSize &size)
Sets the maximum size for KFileItemDelegate::sizeHint().
Definition kfileitemdelegate.cpp:944
void setWrapMode(QTextOption::WrapMode wrapMode)
When the contents text needs to be wrapped, wrapMode strategy will be followed.
Definition kfileitemdelegate.cpp:964
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:974
Information
This enum defines the additional information that can be displayed below item labels in icon views.
Definition kfileitemdelegate.h:146
@ Comment
A simple comment that can be displayed to the user as is.
Definition kfileitemdelegate.h:160
@ OwnerAndGroup
The user and group that owns the file, e.g. root:root.
Definition kfileitemdelegate.h:152
@ LocalPathOrUrl
The local path to the file or the URL in case it is not a local file.
Definition kfileitemdelegate.h:159
@ FriendlyMimeType
The descriptive name for the MIME type, e.g. HTML Document.
Definition kfileitemdelegate.h:157
@ ModificationTime
The date and time the file/folder was last modified.
Definition kfileitemdelegate.h:154
@ Size
The file size for files, and the number of items for folders.
Definition kfileitemdelegate.h:148
QSize maximumSize
This property holds the maximum size that can be returned by KFileItemDelegate::sizeHint().
Definition kfileitemdelegate.h:107
bool showToolTipWhenElided
This property determines whether a tooltip will be shown by the delegate if the display role is elide...
Definition kfileitemdelegate.h:116
KFileItemDelegate(QObject *parent=nullptr)
Constructs a new KFileItemDelegate.
Definition kfileitemdelegate.cpp:808
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:984
void setShadowBlur(qreal radius)
Sets the blur radius for the text shadow.
Definition kfileitemdelegate.cpp:934
bool jobTransfersVisible
This property determines if there are KIO jobs on a destination URL visible, then they will have a sm...
Definition kfileitemdelegate.h:122
InformationList showInformation() const
Returns the file item information that should be shown below item labels in list views.
Definition kfileitemdelegate.cpp:909
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:954
QTextOption::WrapMode wrapMode() const
Returns the wrapping strategy followed to show text when it needs wrapping.
Definition kfileitemdelegate.cpp:969
QRegion shape(const QStyleOptionViewItem &option, const QModelIndex &index)
Returns the shape of the item as a region.
Definition kfileitemdelegate.cpp:1456
QAbstractItemDelegate(QObject *parent)
virtual QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const const
virtual bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index)
virtual bool helpEvent(QHelpEvent *event, QAbstractItemView *view, const QStyleOptionViewItem &option, const QModelIndex &index)
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const const=0
virtual void setEditorData(QWidget *editor, const QModelIndex &index) const const
virtual void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const const
virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const const=0
virtual void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const const
QObject(QObject *parent)
Q_ENUM(...)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SLOTSQ_SLOTS
virtual bool event(QEvent *e)
virtual bool eventFilter(QObject *watched, QEvent *event)
QObject * parent() const const
WrapMode
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:37 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:37 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.