emailuis/nmailui/src/nmattachmentlist.cpp
changeset 44 c2d07d913565
parent 43 99bcbff212ad
child 47 f83bd4ae1fe3
--- a/emailuis/nmailui/src/nmattachmentlist.cpp	Fri May 28 13:56:43 2010 +0300
+++ b/emailuis/nmailui/src/nmattachmentlist.cpp	Thu Jun 10 16:14:05 2010 +0300
@@ -29,8 +29,6 @@
 : mListWidget(listWidget)
 {
     NM_FUNCTION;
-    
-    updateLayout();
 }
 
 /*!
@@ -62,7 +60,6 @@
         count() - 1,
         displayName, 
         NmUtilities::attachmentSizeString(fileSize.toDouble()));  
-    updateLayout();
     return count() - 1;
 }
 
@@ -111,7 +108,6 @@
         mFullFileName.removeAt(arrayIndex);
         mDisplayFileName.removeAt(arrayIndex);
         mAttachmentPartId.removeAt(arrayIndex);
-        updateLayout();
     }
 }
 
@@ -172,7 +168,6 @@
         mFullFileName.removeAt(i);
         mDisplayFileName.removeAt(i);
         mAttachmentPartId.removeAt(i);
-        updateLayout();
     }
 }
 
@@ -230,26 +225,3 @@
     
     return fullName.section('\\', -1);
 }
-
-/*!
-    Update the list layout height
-*/
-void NmAttachmentList::updateLayout()
-{
-    NM_FUNCTION;
-    
-    // Fix this when progress bar is used
-    mListWidget.setMaximumHeight(count() * 56); 
-    QTimer::singleShot(1, this, SLOT(delayedLayoutChangeInfo()));
-}
-
-/*!
-    Send delayed signal about attachment list layout change
-*/
-void NmAttachmentList::delayedLayoutChangeInfo()
-{
-    NM_FUNCTION;
-    
-    emit attachmentListLayoutChanged();
-}
-