#include <ProcessStatus.h>
List of all members.
Public Member Functions |
virtual void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| ProcessStatusDelegate (ProcessStatus *parent) |
virtual QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const |
Constructor & Destructor Documentation
: QItemDelegate(parent) {}
Member Function Documentation
References SciFigs::Legend::item(), ProcessStatus::legend(), SciFigs::LegendItemDisplay::paint(), SciFigs::LegendItemDisplay::setDisplayText(), and TRACE.
{
TRACE;
if(index.column()==0) {
ProcessStatus * table=qobject_cast<ProcessStatus *>(QObject::parent());
ASSERT(table);
LegendItemDisplay item(table->legend().item(index.row()) );
item.setDisplayText(false);
item.paint(*painter, SciFigsGlobal::screenResolution(), option.rect.x(), option.rect.y(),
option.rect.width(), option.rect.height());
} else QItemDelegate::paint(painter, option, index);
}
The documentation for this class was generated from the following files: