mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-12 00:02:25 -04:00
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:
parent
486e4c0eba
commit
9ad21f7c29
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user