emailuis/nmailui/src/nmattachmentlist.cpp
changeset 53 bf7eb7911fc5
parent 30 759dc5235cdb
child 47 f83bd4ae1fe3
--- a/emailuis/nmailui/src/nmattachmentlist.cpp	Fri Jun 11 13:27:14 2010 +0300
+++ b/emailuis/nmailui/src/nmattachmentlist.cpp	Wed Jun 23 18:00:21 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();
-}
-