comparison ui/certificateitemdelegate.cpp @ 375:9e38a4bcd44e

Move certificateitem role into the certificateitemdelagate where it belongs.
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 15 Apr 2014 12:06:03 +0200
parents 6cc124e79066
children 17e1c8f37d72
comparison
equal deleted inserted replaced
374:4836537f87da 375:9e38a4bcd44e
7 void CertificateItemDelegate::paint(QPainter *painter, 7 void CertificateItemDelegate::paint(QPainter *painter,
8 const QStyleOptionViewItem &option, const QModelIndex &index) const 8 const QStyleOptionViewItem &option, const QModelIndex &index) const
9 { 9 {
10 // Save the current painter. 10 // Save the current painter.
11 painter->save(); 11 painter->save();
12 int status = index.data(MainWindow::StatusRole).toInt(); 12 int status = index.data(StatusRole).toInt();
13 if (status == 0) { 13 if (status == 0) {
14 // This status is not known, so draw the default item. 14 // This status is not known, so draw the default item.
15 QStyledItemDelegate::paint(painter, option, index); 15 QStyledItemDelegate::paint(painter, option, index);
16 painter->restore(); 16 painter->restore();
17 return; 17 return;

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