QVariant AiUndoModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const [virtual]

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 }

 All Classes Namespaces Files Functions Variables Typedefs

Generated on Sat Feb 27 08:33:22 2010 for AiFractals by  doxygen 1.6.1