Mercurial > trustbridge
diff 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 |
line wrap: on
line diff
--- a/ui/certificateitemdelegate.cpp Tue Apr 15 12:05:22 2014 +0200 +++ b/ui/certificateitemdelegate.cpp Tue Apr 15 12:06:03 2014 +0200 @@ -9,7 +9,7 @@ { // Save the current painter. painter->save(); - int status = index.data(MainWindow::StatusRole).toInt(); + int status = index.data(StatusRole).toInt(); if (status == 0) { // This status is not known, so draw the default item. QStyledItemDelegate::paint(painter, option, index);