emailuis/nmailuiwidgets/src/nmattachmentlistwidget.cpp
changeset 53 bf7eb7911fc5
parent 30 759dc5235cdb
child 47 f83bd4ae1fe3
child 54 997a02608b3a
--- a/emailuis/nmailuiwidgets/src/nmattachmentlistwidget.cpp	Fri Jun 11 13:27:14 2010 +0300
+++ b/emailuis/nmailuiwidgets/src/nmattachmentlistwidget.cpp	Wed Jun 23 18:00:21 2010 +0300
@@ -350,7 +350,6 @@
     } else {
         NM_ERROR(1,"NmAttachmentListWidget::constructUi: DocML loading failed.");
     }
-
 }
 
 /*!
@@ -446,11 +445,9 @@
     if(Qt::Vertical == mOrientation){
         mLayout->addItem(item,layout_count,0);
     } else {
-        item->setPreferredWidth(preferredWidth() / 2);
+        // Qt FW sets the correct width automatically based on the width of the child widgets
         mLayout->addItem(item,layout_count / 2, layout_count % 2);
     }
-    // Update maximum length of the file name field.
-    item->resetFileNameLength(mOrientation);
 }
 
 /*!