fix attribute table cell resize when activating an edit widget

git-svn-id: http://svn.osgeo.org/qgis/trunk@12034 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
borysiasty 2009-11-08 21:41:00 +00:00
parent 486e4c0eba
commit 9ad21f7c29

View File

@ -63,11 +63,6 @@ QWidget *QgsAttributeTableDelegate::createEditor(
return NULL;
QWidget *widget = QgsAttributeEditor::createAttributeEditor( parent, vl, fieldIdx( index ), index.model()->data( index, Qt::EditRole ) );
widget->adjustSize();
QgsAttributeTableView *tv = dynamic_cast<QgsAttributeTableView *>( parent->parentWidget() );
tv->setRowHeight( index.row(), widget->height() );
tv->setColumnWidth( index.column(), widget->width() );
return widget;
}