void KstImageDialogI::fillFieldsForEdit() { fillFieldsForEditNoUpdate(); KstImagePtr ip = kst_cast<KstImage>(_dp); if (!ip) { return; // shouldn't be needed } ip->readLock(); // set the type of image _w->_colorOnly->setChecked(ip->hasColorMap() && !ip->hasContourMap()); _w->_contourOnly->setChecked(ip->hasContourMap() && !ip->hasColorMap()); _w->_colorAndContour->setChecked(ip->hasColorMap() && ip->hasContourMap()); // set the matrix _w->_matrix->setSelection(ip->matrixTag()); ip->unlock(); //update the groups and enables // won't call fillFieldsForEditNoUpdate again because // fillFieldsForEdit is not called in _editMultipleMode updateGroups(); adjustSize(); resize(minimumSizeHint()); setFixedHeight(height()); }