equal
deleted
inserted
replaced
210 int ret(NmNotFoundError); |
210 int ret(NmNotFoundError); |
211 if(index >= 0 && index < mItemList.count()){ |
211 if(index >= 0 && index < mItemList.count()){ |
212 ret = mItemList.at(index)->progressBarValue(); |
212 ret = mItemList.at(index)->progressBarValue(); |
213 } |
213 } |
214 return ret; |
214 return ret; |
|
215 } |
|
216 |
|
217 /*! |
|
218 Hides progress of item, if index is negative or creater |
|
219 than last index function does nothing |
|
220 */ |
|
221 void NmAttachmentListWidget::hideProgressBar(int index) |
|
222 { |
|
223 if(index >= 0 && index < mItemList.count()){ |
|
224 mItemList.at(index)->hideProgressBar(); |
|
225 } |
215 } |
226 } |
216 |
227 |
217 |
228 |
218 /*! |
229 /*! |
219 paint. Paint function for line painting. |
230 paint. Paint function for line painting. |
399 //check which orientation in use |
410 //check which orientation in use |
400 //if layout is horizontal, items need to be placed in 2 columns. |
411 //if layout is horizontal, items need to be placed in 2 columns. |
401 if(Qt::Vertical == mOrientation){ |
412 if(Qt::Vertical == mOrientation){ |
402 mLayout->addItem(item,layout_count,0); |
413 mLayout->addItem(item,layout_count,0); |
403 } else { |
414 } else { |
404 if (mLayout->contentsRect().width() > 0) { |
415 item->setPreferredWidth(preferredWidth() / 2); |
405 item->setPreferredWidth(mLayout->contentsRect().width() / 2); |
|
406 } |
|
407 mLayout->addItem(item,layout_count / 2, layout_count % 2); |
416 mLayout->addItem(item,layout_count / 2, layout_count % 2); |
408 } |
417 } |
409 |
418 // Update maximum length of the file name field. |
|
419 item->resetFileNameLength(mOrientation); |
410 } |
420 } |
411 |
421 |
412 /*! |
422 /*! |
413 Helper function for rearrange layout after removing or layout change |
423 Helper function for rearrange layout after removing or layout change |
414 */ |
424 */ |