updating view by using a binary image (bytes from QImage)
Definition at line 171 of file aiview.cpp. 00172 { 00173 m_image = image; 00174 this->resize( widthView(m_image.width()) , heightView(m_image.height()) ); 00175 this->update(); 00176 00177 if ( undo && !m_image.isNull() ) 00178 { 00179 AiCommand * cmd = new AiCommand(m_image, this); 00180 this->stack->push( cmd ); 00181 cmd->id( stack->count() - 1 ); 00182 } 00183 } |