[QGIS Commit] r12034 - trunk/qgis/src/app/attributetable

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sun Nov 8 16:41:01 EST 2009


Author: borysiasty
Date: 2009-11-08 16:41:00 -0500 (Sun, 08 Nov 2009)
New Revision: 12034

Modified:
   trunk/qgis/src/app/attributetable/qgsattributetabledelegate.cpp
Log:
fix attribute table cell resize when activating an edit widget

Modified: trunk/qgis/src/app/attributetable/qgsattributetabledelegate.cpp
===================================================================
--- trunk/qgis/src/app/attributetable/qgsattributetabledelegate.cpp	2009-11-08 19:50:24 UTC (rev 12033)
+++ trunk/qgis/src/app/attributetable/qgsattributetabledelegate.cpp	2009-11-08 21:41:00 UTC (rev 12034)
@@ -63,12 +63,7 @@
     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;
 }
 



More information about the QGIS-commit mailing list