diff -r 99bcbff212ad -r c2d07d913565 emailuis/nmailuiwidgets/src/nmattachmentlistwidget.cpp --- a/emailuis/nmailuiwidgets/src/nmattachmentlistwidget.cpp Fri May 28 13:56:43 2010 +0300 +++ b/emailuis/nmailuiwidgets/src/nmattachmentlistwidget.cpp Thu Jun 10 16:14:05 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); } /*!