Skip to content

Commit

Permalink
fix attribute table cell resize when activating an edit widget
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12034 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
borysiasty committed Nov 8, 2009
1 parent 5ab883f commit 91745f0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/app/attributetable/qgsattributetabledelegate.cpp
Expand Up @@ -63,11 +63,6 @@ QWidget *QgsAttributeTableDelegate::createEditor(
return NULL; return NULL;


QWidget *widget = QgsAttributeEditor::createAttributeEditor( parent, vl, fieldIdx( index ), index.model()->data( index, Qt::EditRole ) ); 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; return widget;
} }
Expand Down

0 comments on commit 91745f0

Please sign in to comment.