updating view from reading a physical image (image path)
Definition at line 185 of file aiview.cpp. 00186 { 00187 m_image = QImage( fileName ); 00188 this->resize( widthView(m_image.width()) , heightView(m_image.height()) ); 00189 this->update(); 00190 00191 if ( !m_image.isNull() ) 00192 { 00193 AiCommand * cmd = new AiCommand(m_image, this); 00194 this->stack->push( cmd ); 00195 cmd->id( stack->count() - 1 ); 00196 } 00197 } |