--- a/emailuis/nmailuiwidgets/src/nmattachmentlistwidget.cpp Fri Jun 11 16:42:02 2010 +0300
+++ b/emailuis/nmailuiwidgets/src/nmattachmentlistwidget.cpp Thu Jun 24 14:32:18 2010 +0300
@@ -119,7 +119,10 @@
{
NM_FUNCTION;
+ qDeleteAll(mItemList);
+
mItemList.clear();
+
}
/*!
@@ -257,6 +260,8 @@
Q_UNUSED(option);
Q_UNUSED(widget);
if (painter&&mLayout){
+ painter->save();
+
// Use text color as a line color if set, otherwise use theme
// normal list content color.
if (mTextColor.isValid()){
@@ -280,7 +285,8 @@
layoutRect.bottomRight().x(), itemRect.bottomRight().y());
painter->drawLine(line1);
}
- }
+ }
+ painter->restore();
}
}
@@ -318,8 +324,9 @@
//construct UI after orientation has been figured out
constructUi();
- //set default values, needed?
- setFlag(QGraphicsItem::ItemIsFocusable);
+ //set flags
+ setFlag(QGraphicsItem::ItemIsFocusable);
+ setFlag(QGraphicsItem::ItemHasNoContents,false);
}
/*!