--- a/emailuis/nmailuiwidgets/src/nmattachmentlistwidget.cpp Mon May 03 12:23:15 2010 +0300
+++ b/emailuis/nmailuiwidgets/src/nmattachmentlistwidget.cpp Fri May 14 15:41:10 2010 +0300
@@ -214,6 +214,17 @@
return ret;
}
+/*!
+ Hides progress of item, if index is negative or creater
+ than last index function does nothing
+ */
+void NmAttachmentListWidget::hideProgressBar(int index)
+{
+ if(index >= 0 && index < mItemList.count()){
+ mItemList.at(index)->hideProgressBar();
+ }
+}
+
/*!
paint. Paint function for line painting.
@@ -401,12 +412,11 @@
if(Qt::Vertical == mOrientation){
mLayout->addItem(item,layout_count,0);
} else {
- if (mLayout->contentsRect().width() > 0) {
- item->setPreferredWidth(mLayout->contentsRect().width() / 2);
- }
+ item->setPreferredWidth(preferredWidth() / 2);
mLayout->addItem(item,layout_count / 2, layout_count % 2);
}
-
+ // Update maximum length of the file name field.
+ item->resetFileNameLength(mOrientation);
}
/*!