Plasma
Go to the documentation of this file.
21 #ifndef PLASMA_DELEGATE_H
22 #define PLASMA_DELEGATE_H
25 #include <QtGui/QAbstractItemDelegate>
33 class DelegatePrivate;
58 SubTitleRole = Qt::UserRole + 1,
59 SubTitleMandatoryRole = Qt::UserRole + 2,
60 ColumnTypeRole = Qt::UserRole + 3
65 SecondaryActionColumn = 2
78 void setRoleMapping(SpecificRoles role,
int actual);
80 int roleMapping(SpecificRoles role)
const;
83 virtual void paint(QPainter *painter,
const QStyleOptionViewItem &option,
84 const QModelIndex &index)
const;
89 bool showToolTip()
const;
101 QRect rectAfterTitle(
const QStyleOptionViewItem &option,
const QModelIndex &index)
const;
111 QRect rectAfterSubTitle(
const QStyleOptionViewItem &option,
const QModelIndex &index)
const;
121 QRect emptyRect(
const QStyleOptionViewItem &option,
const QModelIndex &index)
const;
123 virtual QSize sizeHint(
const QStyleOptionViewItem &option,
const QModelIndex &index)
const;
126 DelegatePrivate *
const d;
131 #endif // PLASMA_DELEGATE_H
Item delegate for rendering items in Plasma menus implemented with item views.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:33 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.