Definition at line 83 of file aiundomodel.cpp. 00084 { 00085 if( role == Qt::DecorationRole ) 00086 { 00087 const AiCommand * cmd = (AiCommand*) m_stack->command( index.row() ); 00088 return QIcon( QPixmap::fromImage(cmd->image.scaled(60, 60, 00089 Qt::KeepAspectRatio, Qt::SmoothTransformation) ) ); 00090 } 00091 00092 return QVariant(); 00093 } |