comparison ui/certificateitemdelegate.h @ 433:2e5499fae159

Set sizeHint for certificate item delegates.
author Raimund Renkert <rrenkert@intevation.de>
date Tue, 22 Apr 2014 12:33:10 +0200
parents 17e1c8f37d72
children b3721ded6f5b
comparison
equal deleted inserted replaced
432:16b5cd858571 433:2e5499fae159
29 * @param option The style options. 29 * @param option The style options.
30 * @param index The model index of the item to draw. 30 * @param index The model index of the item to draw.
31 */ 31 */
32 void paint(QPainter *painter, const QStyleOptionViewItem &option, 32 void paint(QPainter *painter, const QStyleOptionViewItem &option,
33 const QModelIndex &index) const; 33 const QModelIndex &index) const;
34 QSize sizeHint(const QStyleOptionViewItem &option,
35 const QModelIndex &index) const;
34 36
35 /** @brief different roles for this tiem */ 37 /** @brief different roles for this tiem */
36 enum ItemRole { 38 enum ItemRole {
37 DetailsRole = Qt::UserRole, /* The certificate details for the window */ 39 DetailsRole = Qt::UserRole, /* The certificate details for the window */
38 StatusRole, /* Certificate status */ 40 StatusRole, /* Certificate status */

http://wald.intevation.org/projects/trustbridge/